Module: ActionSentinelGroup
- Defined in:
- lib/action_sentinel_group.rb,
lib/action_sentinel_group/model.rb,
lib/action_sentinel_group/version.rb,
lib/action_sentinel_group/permissions.rb,
lib/action_sentinel_group/configuration.rb,
lib/generators/action_sentinel_group/install_generator.rb
Overview
The ActionSentinelGroup module is an extension of ActionSentinel gem that provides a way to group users and provide group access permissions
Defined Under Namespace
Modules: Model, Permissions Classes: Configuration, InstallGenerator
Constant Summary collapse
- VERSION =
"0.1.0"
Class Attribute Summary collapse
-
.configuration ⇒ Object
Accessor for the configuration instance.
Class Method Summary collapse
-
.configure {|configuration| ... } ⇒ Object
Configures the ActionSentinelGroup settings.
Class Attribute Details
.configuration ⇒ Object
Accessor for the configuration instance
13 14 15 |
# File 'lib/action_sentinel_group.rb', line 13 def configuration @configuration end |
Class Method Details
.configure {|configuration| ... } ⇒ Object
Configures the ActionSentinelGroup settings
@example:
ActionSentinelGroup.configure do |config|
config.user_model_name = "User"
end
22 23 24 25 |
# File 'lib/action_sentinel_group.rb', line 22 def configure self.configuration ||= Configuration.new yield(configuration) end |