lib/engine-assets.rb in engine-assets-0.4.2 vs lib/engine-assets.rb in engine-assets-0.5.0
- old
+ new
@@ -1,5 +1,11 @@
-module EngineAssets ; end
+module EngineAssets
+ class << self
+ def version
+ IO.read(File.join(File.dirname(__FILE__), '..', 'VERSION')).strip
+ end
+ end
+end
-require 'action_view' unless defined?(Railss)
+require 'engine_assets/engine' if defined?(Rails) && Rails::VERSION::MAJOR == 3
require 'engine_assets/public_locator'
require 'engine_assets/extensions/rails/assets'