module Merb::Assets

Constants

VERSION

Public Class Methods

bundle?() click to toggle source

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

# File lib/merb-assets/assets.rb, line 10
def self.bundle?
  (Merb.environment == 'production') ||
  (!!Merb::Config[:bundle_assets])
end