Module: HasScope
- Defined in:
- lib/has_scope.rb,
lib/has_scope/version.rb
Defined Under Namespace
Modules: ClassMethods
Constant Summary collapse
- TRUE_VALUES =
["true", true, "1", 1]
- ALLOWED_TYPES =
{ :array => [[ Array ]], :hash => [[Hash, ActionController::Parameters]], :boolean => [[ Object ], -> v { TRUE_VALUES.include?(v) }], :default => [[ String, Numeric ]], }
- VERSION =
"0.7.0"
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 class_attribute :scopes_configuration, :instance_writer => false self.scopes_configuration = {} end end |