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

Class Method Details

.setup {|_self| ... } ⇒ Object

Yield self on setup for nice config blocks

Yields:

  • (_self)

Yield Parameters:

  • _self (Activa)

    the object that the method was called on



15
16
17
# File 'lib/activa.rb', line 15

def self.setup
  yield self
end

.user_classObject



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