Module: Merb::Assets

Defined in:
merb-assets/lib/merb-assets/assets.rb,
merb-assets/lib/merb-assets/version.rb

Defined Under Namespace

Modules: AssetHelpers Classes: AbstractAssetBundler, JavascriptAssetBundler, StylesheetAssetBundler, UniqueAssetPath

Constant Summary

VERSION =
'1.2.0'.freeze

Class Method Summary (collapse)

Class Method Details

+ (Boolean) bundle?

Check whether the assets should be bundled.

Returns:

  • (Boolean)

    True if the assets should be bundled (e.g., production mode or :bundle_assets is explicitly enabled).



8
9
10
11
# File 'merb-assets/lib/merb-assets/assets.rb', line 8

def self.bundle?
  (Merb.environment == 'production') ||
  (!!Merb::Config[:bundle_assets])
end