Sha256: f66584708895cc3af3bd23c3f0cb874967785ac17a1dff848da86a9926d80c7c
Contents?: true
Size: 526 Bytes
Versions: 25
Compression:
Stored size: 526 Bytes
Contents
module ActiveAssets module ActiveExpansions module AssetScope def group(*groups, &blk) @current_groups = groups instance_eval(&blk) ensure @current_groups = nil end def js(&blk) current_type :js, &blk end def css(&blk) current_type :css, &blk end private def current_type(type, &blk) @current_type = type instance_eval(&blk) ensure @current_type = nil end end end end
Version data entries
25 entries across 25 versions & 1 rubygems