lib/elm/rails/railtie.rb in elm-rails-0.2.2 vs lib/elm/rails/railtie.rb in elm-rails-0.4.0

- old
+ new

@@ -14,15 +14,10 @@ sprockets_env = app.assets || app.config.assets sprockets_env.paths.concat Dir[app.root.join("app", "assets", "elm")] config.assets.configure do |env| env.register_mime_type "text/x-elm", extensions: [".elm"] - - if Gem::Version.new(Sprockets::VERSION) >= Gem::Version.new("3.0.0") - env.register_transformer "text/x-elm", "application/javascript", Elm::Rails::Sprockets - else - env.register_engine ".elm", Elm::Rails::Sprockets - end + env.register_transformer "text/x-elm", "application/javascript", Elm::Rails::Sprockets end end end end end