Sha256: 4992207979b94cc527e76cae0513bc0fe0d618283ba44988e35926317ce32247

Contents?: true

Size: 442 Bytes

Versions: 22

Compression:

Stored size: 442 Bytes

Contents

if Rails.root.nil?
  class SmartAsset
    class SmartAssetRailtie < Rails::Railtie
      initializer "smart_asset_railtie.configure_rails_initialization" do
        SmartAsset.env = Rails.env
        SmartAsset.load_config(Rails.root)
      end
    end
  end
else
  SmartAsset.env = Rails.env
  SmartAsset.load_config(Rails.root)
end

ActionController::Base.send(:include, SmartAsset::Helper)
ActionController::Base.helper(SmartAsset::Helper)

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
smart_asset-0.6.0 lib/smart_asset/adapters/rails3.rb
smart_asset-0.5.11 lib/smart_asset/adapters/rails3.rb
smart_asset-0.5.10 lib/smart_asset/adapters/rails3.rb
smart_asset-0.5.9 lib/smart_asset/adapters/rails3.rb
smart_asset-0.5.8 lib/smart_asset/adapters/rails3.rb
smart_asset-0.5.7 lib/smart_asset/adapters/rails3.rb
smart_asset-0.5.6 lib/smart_asset/adapters/rails3.rb
smart_asset-0.5.5 lib/smart_asset/adapters/rails3.rb
smart_asset-0.5.4 lib/smart_asset/adapters/rails3.rb
smart_asset-0.5.3 lib/smart_asset/adapters/rails3.rb
smart_asset-0.5.2 lib/smart_asset/adapters/rails3.rb
smart_asset-0.5.1 lib/smart_asset/adapters/rails3.rb
smart_asset-0.5.0 lib/smart_asset/adapters/rails3.rb
smart_asset-0.4.7 lib/smart_asset/adapters/rails3.rb
smart_asset-0.4.6 lib/smart_asset/adapters/rails3.rb
smart_asset-0.4.5 lib/smart_asset/adapters/rails3.rb
smart_asset-0.4.4 lib/smart_asset/adapters/rails3.rb
smart_asset-0.4.3 lib/smart_asset/adapters/rails3.rb
smart_asset-0.4.2 lib/smart_asset/adapters/rails3.rb
smart_asset-0.4.1 lib/smart_asset/adapters/rails3.rb