Module: Jtalk::Rails

Defined in:
lib/jtalk/rails.rb,
lib/jtalk/rails/engine.rb,
lib/jtalk/rails/version.rb

Defined Under Namespace

Classes: Engine

Constant Summary collapse

VERSION =
'0.1.0'

Class Method Summary collapse

Class Method Details

.asset_pathsObject



20
21
22
# File 'lib/jtalk/rails.rb', line 20

def asset_paths
  %w[ assets/stylesheets assets/javascripts ].map{ |dir| gem_root.join(dir) }
end

.configureObject



24
25
26
# File 'lib/jtalk/rails.rb', line 24

def configure
  ::Rails.application.config.assets.paths += asset_paths
end

.gem_rootObject



16
17
18
# File 'lib/jtalk/rails.rb', line 16

def gem_root
  @gem_root ||= Pathname.new(File.expand_path('../..', File.dirname(__FILE__)))
end