Module: Merb::Assets

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

Defined Under Namespace

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

Class Method Summary collapse

Class Method Details

.bundle?Boolean

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).

Returns:

  • (Boolean)


10
11
12
13
# File 'lib/merb-assets/assets.rb', line 10

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