Module: Permisi
- Defined in:
- lib/permisi.rb,
lib/permisi/config.rb,
lib/permisi/actable.rb,
lib/permisi/backend.rb,
lib/permisi/version.rb,
lib/permisi/backend/mongoid.rb,
lib/permisi/permission_util.rb,
lib/permisi/backend/active_record.rb,
lib/permisi/backend/active_record/role.rb,
lib/permisi/backend/active_record/actor.rb,
lib/generators/permisi/install_generator.rb,
lib/permisi/backend/active_record/actor_role.rb
Defined Under Namespace
Modules: Actable, Backend, Generators, PermissionUtil
Classes: Config
Constant Summary
collapse
- LOADER =
Zeitwerk::Loader.for_gem
- VERSION =
"0.1.5"
Class Method Summary
collapse
Class Method Details
.actor(aka) ⇒ Object
23
24
25
|
# File 'lib/permisi.rb', line 23
def actor(aka)
config.backend.findsert_actor(aka)
end
|
.actors ⇒ Object
19
20
21
|
# File 'lib/permisi.rb', line 19
def actors
config.backend.actors
end
|
.config ⇒ Object
15
16
17
|
# File 'lib/permisi.rb', line 15
def config
@config ||= Config.new
end
|
.init {|config| ... } ⇒ Object
11
12
13
|
# File 'lib/permisi.rb', line 11
def init
yield config if block_given?
end
|
.roles ⇒ Object
27
28
29
|
# File 'lib/permisi.rb', line 27
def roles
config.backend.roles
end
|