Created
December 19, 2010 05:43
-
-
Save remear/747130 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class TicketType < Struct.new(:name) | |
extend ActiveModel::Naming | |
include ActiveModel::Conversion | |
extend ActiveModel::Translation | |
def initialize(*args) | |
super | |
end | |
def persisted=(boolean) | |
@persisted = boolean | |
end | |
def persisted? | |
@persisted | |
end | |
attr_accessor :name | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment