Methods
N
S
T
Included Modules
Attributes
[R] id
Instance Public methods
name()
# File actionview/test/lib/controller/fake_models.rb, line 138
def name
  @id.nil? ? 'new sheep' : "sheep ##{@id}"
end
new_record?()
# File actionview/test/lib/controller/fake_models.rb, line 137
def new_record?; @id.nil? end
save()
# File actionview/test/lib/controller/fake_models.rb, line 136
def save; @id = 1 end
to_key()
# File actionview/test/lib/controller/fake_models.rb, line 135
def to_key; id ? [id] : nil end