Methods
N
P
R
S
T
V
Included Modules
Attributes
[R] id
[R] post_id
[RW] relevances
Class Public methods
new(id = nil, post_id = nil)
# File actionpack/test/lib/controller/fake_models.rb, line 111
def initialize(id = nil, post_id = nil); @id, @post_id = id, post_id end
Instance Public methods
persisted?()
# File actionpack/test/lib/controller/fake_models.rb, line 114
def persisted?; @id.present? end
relevances_attributes=(attributes)
# File actionpack/test/lib/controller/fake_models.rb, line 121
def relevances_attributes=(attributes); end
save()
# File actionpack/test/lib/controller/fake_models.rb, line 113
def save; @id = 1; @post_id = 1 end
to_key()
# File actionpack/test/lib/controller/fake_models.rb, line 112
def to_key; id ? [id] : nil end
to_param()
# File actionpack/test/lib/controller/fake_models.rb, line 115
def to_param; @id; end
value()
# File actionpack/test/lib/controller/fake_models.rb, line 116
def value
  @id.nil? ? "new #{self.class.name.downcase}" : "#{self.class.name.downcase} ##{@id}"
end