Module: HasScope
- Defined in:
- lib/has_scope.rb
Defined Under Namespace
Modules: ClassMethods
Constant Summary collapse
- TRUE_VALUES =
["true", true, "1", 1]
- ALLOWED_TYPES =
{ :array => [ Array ], :hash => [ Hash ], :boolean => [ Object ], :default => [ String, Numeric ] }
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/has_scope.rb', line 11 def self.included(base) base.class_eval do extend ClassMethods helper_method :current_scopes class_inheritable_hash :scopes_configuration, :instance_writer => false end end |