Module: Doppel
- Defined in:
- lib/doppel.rb,
lib/doppel/railtie.rb,
lib/doppel/version.rb,
lib/doppel/active_record/base.rb
Defined Under Namespace
Modules: ActiveRecord
Classes: Railtie
Constant Summary
collapse
- VERSION =
'0.1.0'
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.logger ⇒ Object
11
12
13
14
15
16
|
# File 'lib/doppel.rb', line 11
def logger
@logger ||= Logger.new($stdout).tap do |log|
log.progname = self.name
log.level = Logger::INFO
end
end
|
Class Method Details
.load ⇒ Object
23
24
25
|
# File 'lib/doppel.rb', line 23
def self.load
::ActiveRecord::Base.send :prepend, ActiveRecord::Base
end
|
.root ⇒ Object
19
20
21
|
# File 'lib/doppel.rb', line 19
def self.root
@root ||= Pathname.new(File.expand_path('../../', File.dirname(__FILE__)))
end
|