module StatelyScopes

Constants

VERSION

Public Class Methods

configuration() click to toggle source
# File lib/stately_scopes.rb, line 35
def configuration
  StatelyScopes::Configuration.configuration
end
configure() { |configuration| ... } click to toggle source
# File lib/stately_scopes.rb, line 31
def configure(&block)
  yield(StatelyScopes::Configuration.configuration)
end

Public Instance Methods

has_scoped_state?(name) click to toggle source
# File lib/stately_scopes.rb, line 15
def has_scoped_state?(name)
  self.class.send(name.to_sym).exists?(self.id)
end