Class: Passkit::Pass
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Passkit::Pass
- Defined in:
- app/models/passkit/pass.rb
Instance Method Summary collapse
Instance Method Details
#instance ⇒ Object
60 61 62 |
# File 'app/models/passkit/pass.rb', line 60 def instance @instance ||= klass.constantize.new(generator) end |
#last_update ⇒ Object
64 65 66 |
# File 'app/models/passkit/pass.rb', line 64 def last_update instance.last_update || updated_at end |