module Hello
Cannot be named ActiveRecord or will compete with ::ActiveRecord
Constants
- VERSION
Public Class Methods
configuration()
click to toggle source
invoked internally
# File lib/hello/configuration.rb, line 8 def self.configuration Rails.configuration.hello ||= ActiveSupport::OrderedOptions.new end
configure() { |configuration| ... }
click to toggle source
invoked from config/initializers/hello.rb
# File lib/hello/configuration.rb, line 3 def self.configure yield(configuration) end
root()
click to toggle source
# File lib/hello.rb, line 7 def self.root @root ||= Pathname(File.dirname(__FILE__)).join('..') end
warning(s2)
click to toggle source
# File lib/hello.rb, line 11 def self.warning(s2) s1 = 'HELLO DEV WARNING:'.black.on_yellow.bold puts "#{s1} #{s2.yellow}" end