Module: Katsudo

Defined in:
lib/katsudo/engine.rb,
lib/katsudo.rb,
lib/katsudo/models.rb,
lib/katsudo/railtie.rb,
lib/katsudo/version.rb,
lib/katsudo/controller.rb,
lib/katsudo/models/user.rb,
lib/katsudo/configuration.rb,
lib/katsudo/models/scopes.rb,
lib/katsudo/models/activity.rb,
lib/katsudo/models/resource.rb

Overview

:nodoc:

Defined Under Namespace

Modules: ActiveRecordExtension, ControllerExtension, Models, Scopes Classes: Collector, Configuration, Engine, Railtie

Constant Summary collapse

VERSION =
"0.0.4"

Class Method Summary collapse

Class Method Details

.activity_classObject



7
8
9
10
11
12
13
14
# File 'lib/katsudo/models.rb', line 7

def self.activity_class
  @activity_clas ||=
  begin
    Object.const_get(Katsudo.config.activity_class_name)
  rescue NameError
    Object.const_set(Katsudo.config.activity_class_name, Class.new(ActiveRecord::Base))
  end
end

.configObject



7
8
9
# File 'lib/katsudo/configuration.rb', line 7

def self.config
  @config ||= Configuration.new
end

.configure {|config| ... } ⇒ Object

Yields:



3
4
5
# File 'lib/katsudo/configuration.rb', line 3

def self.configure
  yield config
end

.load!Object



4
5
6
7
8
# File 'lib/katsudo.rb', line 4

def self.load!
  require 'katsudo/configuration'
  require 'katsudo/engine'
  require 'katsudo/railtie'
end