Sha256: 4d0a4a2547b2855ae33c1d69a043c5ab738abdd62d1edb4ebedf2c16cdf31f2f
Contents?: true
Size: 890 Bytes
Versions: 8
Compression:
Stored size: 890 Bytes
Contents
require "ende/version" module Ende class Railtie < Rails::Railtie config.to_prepare do current_dir = Pathname.new(__FILE__).parent.parent assets = Ende.assets assets.paths << current_dir.join('lib', 'assets', 'javascripts').to_s # assets.paths << current_dir.join('lib', 'assets', 'stylesheets').to_s uncomment if you use assets.paths << current_dir.join('vendor', 'assets', 'javascripts').to_s # assets.paths << current_dir.join('vendor', 'assets', 'stylesheets').to_s uncomment if you use end # Check if devise exists and extend devise controllers to send # authenticity (csrf) token # config.initializer :blah do # UsersController.send :include, UsersControllerExtensions if devise # end end def Ende.assets assets = Railtie.config.assets rescue nil assets or Rails.application.config.assets end end
Version data entries
8 entries across 8 versions & 1 rubygems
Version | Path |
---|---|
ende-0.1.12 | lib/ende.rb |
ende-0.1.11 | lib/ende.rb |
ende-0.1.10 | lib/ende.rb |
ende-0.1.9 | lib/ende.rb |
ende-0.1.8 | lib/ende.rb |
ende-0.1.7 | lib/ende.rb |
ende-0.1.6 | lib/ende.rb |
ende-0.1.5 | lib/ende.rb |