Sha256: 60449e4fd9ae0ba0699927dc8c8f49f7242590a138d5a8ff7b944a1243e7dbd1

Contents?: true

Size: 571 Bytes

Versions: 3

Compression:

Stored size: 571 Bytes

Contents

module Edge
	class Engine < Rails::Engine
		# Save this block, we'll use it in two calls to .initializer
		add_paths_block = lambda { |app|
			app.config.assets.paths << File.expand_path("../../../assets/sass", __FILE__)
			app.config.assets.paths << File.expand_path("../../../assets/js", __FILE__)
		}

		# Standard initializer
		initializer 'edge.update_asset_paths', &add_paths_block

		# Special initializer lets us precompile assets without fully initializing
		initializer 'edge.update_asset_paths', :group => :assets,
			&add_paths_block
	end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
edge_framework-0.1.0 lib/edge/engine.rb
edge_framework-0.0.3 lib/edge/engine.rb
edge_framework-0.0.2 lib/edge/engine.rb