Module: Activa
- Defined in:
- lib/activa.rb,
lib/activa/engine.rb,
lib/activa/version.rb,
app/models/activa/page.rb,
app/models/activa/ability.rb,
lib/activa/default_permissions.rb,
app/helpers/activa/pages_helper.rb,
app/helpers/activa/application_helper.rb,
lib/generators/activa/views_generator.rb,
lib/generators/activa/install_generator.rb
Overview
TODO Изменять slug только в том случае, когда он был изменен вручную
Defined Under Namespace
Modules: ApplicationHelper, DefaultPermissions, Generators, PagesHelper Classes: Ability, ApplicationController, Engine, Page, PagesController
Constant Summary collapse
- VERSION =
"0.0.14"
Class Method Summary collapse
-
.setup {|_self| ... } ⇒ Object
Yield self on setup for nice config blocks.
- .user_class ⇒ Object
Class Method Details
.setup {|_self| ... } ⇒ Object
Yield self on setup for nice config blocks
15 16 17 |
# File 'lib/activa.rb', line 15 def self.setup yield self end |
.user_class ⇒ Object
20 21 22 23 24 |
# File 'lib/activa.rb', line 20 def user_class if @@user_class.is_a?(String) @@user_class.constantize end end |