Module: Whereuat

Defined in:
lib/whereuat.rb,
lib/whereuat/helpers.rb,
lib/whereuat/railtie.rb,
lib/whereuat/rack_app.rb,
lib/whereuat/configuration.rb

Defined Under Namespace

Modules: Helpers Classes: Configuration, RackApp, Railtie

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject



10
11
12
# File 'lib/whereuat.rb', line 10

def configuration
  @configuration ||= Configuration.new
end

Class Method Details

.assets_pathObject



22
23
24
# File 'lib/whereuat.rb', line 22

def assets_path
  Rails.root+'public/whereuat'
end

.configure {|configuration| ... } ⇒ Object

Yields:



14
15
16
# File 'lib/whereuat.rb', line 14

def configure
  yield(configuration)
end

.gem_rootObject



26
27
28
# File 'lib/whereuat.rb', line 26

def gem_root
  @gem_root ||= Pathname('../..').expand_path(__FILE__)
end

.load_rake_tasks!Object



18
19
20
# File 'lib/whereuat.rb', line 18

def load_rake_tasks!
  load gem_root+'lib/whereuat/tasks.rb'
end