Module: FannyPack::Assets::Sprockets
- Defined in:
- lib/fanny_pack/assets.rb
Overview
Integrate FannyPack ./lib/assets files into a sprocket-enabled environment.
Class Method Summary collapse
-
.auto_detect ⇒ Object
Try to automatically configure Sprockets if its detected in the project.
-
.configure(env) ⇒ Object
Drop flash and javascript paths to FannyPack assets into a sprockets environment.
Class Method Details
.auto_detect ⇒ Object
Try to automatically configure Sprockets if its detected in the project.
17 18 19 20 21 |
# File 'lib/fanny_pack/assets.rb', line 17 def self.auto_detect if defined? ::Sprockets and ::Sprockets.respond_to? :append_path FannyPack::Assets::Sprockets.configure ::Sprockets end end |
.configure(env) ⇒ Object
Drop flash and javascript paths to FannyPack assets into a sprockets environment.
11 12 13 14 |
# File 'lib/fanny_pack/assets.rb', line 11 def self.configure(env) env.append_path FannyPack::Assets.path('javascripts') env end |