Skip to content

Instantly share code, notes, and snippets.

@dkln
Created August 3, 2010 08:25
Show Gist options
  • Save dkln/506048 to your computer and use it in GitHub Desktop.
Save dkln/506048 to your computer and use it in GitHub Desktop.
class Person
include ActiveModel::Validations
include ActiveModel::Conversion
extend ActiveModel::Naming
attr_accessor :first_name, :last_name
def persisted?
false
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment