Module: Authentasaurus::Models::Permission
- Included in:
- Permission
- Defined in:
- lib/authentasaurus/models/permission.rb
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Class Method Summary collapse
-
.included(base) ⇒ Object
:nodoc:.
Class Method Details
.included(base) ⇒ Object
:nodoc:
2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/authentasaurus/models/permission.rb', line 2 def self.included(base) # :nodoc: base.send :extend, ClassMethods base.send :include, InstanceMethods base.send :unloadable base.send :belongs_to, :group base.send :belongs_to, :area # Check that everything is there base.send :validates_presence_of, :group_id, :area_id # Check foreign keys base.send :validates_associated, :group, :area end |