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_paths ⇒ Object
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 |
.configure ⇒ Object
24 25 26 |
# File 'lib/jtalk/rails.rb', line 24 def configure ::Rails.application.config.assets.paths += asset_paths end |
.gem_root ⇒ Object
16 17 18 |
# File 'lib/jtalk/rails.rb', line 16 def gem_root @gem_root ||= Pathname.new(File.('../..', File.dirname(__FILE__))) end |