Module: RubyHstoreMgmt::ActsAsRubyHstoreMgmt::ClassMethods

Defined in:
lib/ruby_hstore_mgmt/acts_as_ruby_hstore_mgmt/class_methods.rb

Instance Method Summary collapse

Instance Method Details

#acts_as_ruby_hstore_mgmt(options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/ruby_hstore_mgmt/acts_as_ruby_hstore_mgmt/class_methods.rb', line 6

def acts_as_ruby_hstore_mgmt(options = {})
  include RubyHstoreMgmt::ActsAsRubyHstoreMgmt::InstanceMethods
  include RubyHstoreMgmt::Concerns::HstoreMgmt
  # Initialize the class instance variables
  @roles_field_name = options[:field_name] if options[:field_name].present?
end