class Customer

Public Instance Methods

errors() click to toggle source
# File test/lib/controller/fake_models.rb, line 22
def errors
  []
end
persisted?() click to toggle source
# File test/lib/controller/fake_models.rb, line 26
def persisted?
  id.present?
end
to_js(options={}) click to toggle source
# File test/lib/controller/fake_models.rb, line 17
def to_js(options={})
  "name: #{name.inspect}"
end
Also aliased as: to_text
to_text(options={}) click to toggle source
Alias for: to_js
to_xml(options={}) click to toggle source
# File test/lib/controller/fake_models.rb, line 9
def to_xml(options={})
  if options[:builder]
    options[:builder].name name
  else
    "<name>#{name}</name>"
  end
end