Module: CdnSumoSprockets
- Defined in:
- lib/cdn_sumo_sprockets_rails2.rb,
lib/cdn_sumo_sprockets_rails2/rails2/version.rb
Defined Under Namespace
Modules: Rails2
Class Method Summary collapse
Class Method Details
.new ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/cdn_sumo_sprockets_rails2.rb', line 4 def self.new sprockets = Sprockets::Environment.new sprockets.append_path(File.join('.', "app/assets/javascripts")) sprockets.append_path(File.join('.', "app/assets/stylesheets")) sprockets.append_path(File.join('.', "app/assets/images")) sprockets end |
.public_path ⇒ Object
16 17 18 |
# File 'lib/cdn_sumo_sprockets_rails2.rb', line 16 def self.public_path root.join("public") end |
.root ⇒ Object
12 13 14 |
# File 'lib/cdn_sumo_sprockets_rails2.rb', line 12 def self.root Pathname.new('.') end |