Module: StatelyScopes
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/stately_scopes.rb,
lib/stately_scopes/version.rb
Defined Under Namespace
Modules: ClassMethods Classes: Configuration
Constant Summary collapse
- VERSION =
"0.0.4"
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.configuration ⇒ Object
35 36 37 |
# File 'lib/stately_scopes.rb', line 35 def configuration StatelyScopes::Configuration.configuration end |
.configure {|StatelyScopes::Configuration.configuration| ... } ⇒ Object
31 32 33 |
# File 'lib/stately_scopes.rb', line 31 def configure(&block) yield(StatelyScopes::Configuration.configuration) end |
Instance Method Details
#has_scoped_state?(name) ⇒ Boolean
15 16 17 |
# File 'lib/stately_scopes.rb', line 15 def has_scoped_state?(name) self.class.send(name.to_sym).exists?(self.id) end |