Methods
N
P
S
T
V
Included Modules
Attributes
[R] comment_id
[R] id
Class Public methods
new(id = nil, comment_id = nil)
# File actionview/test/lib/controller/fake_models.rb, line 120
def initialize(id = nil, comment_id = nil); @id, @comment_id = id, comment_id end
Instance Public methods
persisted?()
# File actionview/test/lib/controller/fake_models.rb, line 123
def persisted?; @id.present? end
save()
# File actionview/test/lib/controller/fake_models.rb, line 122
def save; @id = 1; @comment_id = 1 end
to_key()
# File actionview/test/lib/controller/fake_models.rb, line 121
def to_key; id ? [id] : nil end
to_param()
# File actionview/test/lib/controller/fake_models.rb, line 124
def to_param; @id; end
value()
# File actionview/test/lib/controller/fake_models.rb, line 125
def value
  @id.nil? ? "new #{self.class.name.downcase}" : "#{self.class.name.downcase} ##{@id}"
end