Module: CanTango::Model::Guest
- Defined in:
- lib/cantango/model/guest.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/cantango/model/guest.rb', line 6 def self.included(base) base.extend ::ActiveModel::Naming base.extend ::ActiveModel::Callbacks base.send :include, ::ActiveModel::Conversion base.send :include, ::ActiveModel::Validations end |
Instance Method Details
#email ⇒ Object
14 15 16 |
# File 'lib/cantango/model/guest.rb', line 14 def email '[email protected]' end |
#has_role?(role) ⇒ Boolean
18 19 20 |
# File 'lib/cantango/model/guest.rb', line 18 def has_role? role role.to_sym == :guest end |
#persisted? ⇒ Boolean
22 23 24 |
# File 'lib/cantango/model/guest.rb', line 22 def persisted? false end |