Sha256: 2950858cd961ff338d83519a0d36eb886c3695f47b6143e54e2b701c04cdc334

Contents?: true

Size: 404 Bytes

Versions: 7

Compression:

Stored size: 404 Bytes

Contents

begin
  config.gem "less"
  require 'less'
rescue LoadError
  puts "Please install the Less gem, `gem install less`."
end

case Rails.env
when "test"
  # Do nothing
when "production"
  # Compile less when the application loads
  config.after_initialize do
    LessForRails.run(:compress => true)
  end
else
  # Compile less on every request
  ActionController::Base.before_filter { LessForRails.run }
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
yhara-moneyrail-0.0.2 vendor/plugins/less/init.rb
moneyrail-0.1.5 vendor/plugins/less/init.rb
moneyrail-0.1.4 vendor/plugins/less/init.rb
moneyrail-0.1.2 vendor/plugins/less/init.rb
moneyrail-0.1.1 vendor/plugins/less/init.rb
moneyrail-0.1.0 vendor/plugins/less/init.rb
moneyrail-0.0.2 vendor/plugins/less/init.rb