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 actionview/test/lib/controller/fake_models.rb, line 100
def initialize(id = nil, post_id = nil); @id, @post_id = id, post_id end
Instance Public methods
persisted?()
# File actionview/test/lib/controller/fake_models.rb, line 103
def persisted?; @id.present? end
relevances_attributes=(attributes)
# File actionview/test/lib/controller/fake_models.rb, line 110
def relevances_attributes=(attributes); end
save()
# File actionview/test/lib/controller/fake_models.rb, line 102
def save; @id = 1; @post_id = 1 end
to_key()
# File actionview/test/lib/controller/fake_models.rb, line 101
def to_key; id ? [id] : nil end
to_param()
# File actionview/test/lib/controller/fake_models.rb, line 104
def to_param; @id; end
value()
# File actionview/test/lib/controller/fake_models.rb, line 105
def value
  @id.nil? ? "new #{self.class.name.downcase}" : "#{self.class.name.downcase} ##{@id}"
end