Module: Bali::Statics::Record

Defined in:
lib/bali/statics/record.rb

Class Method Summary collapse

Class Method Details

.extended(cls) ⇒ Object



2
3
4
5
6
7
8
9
10
11
12
# File 'lib/bali/statics/record.rb', line 2

def self.extended(cls)
  cls.class_eval do
    class << self
      attr_accessor :role_field_for_authorization
    end

    def self.extract_roles_from method_name
      @role_field_for_authorization = method_name
    end
  end
end