lib/native/railtie.rb in native-2.1.0 vs lib/native/railtie.rb in native-2.1.1
- old
+ new
@@ -1,15 +1,17 @@
require 'rails'
module Native
class Railtie < Rails::Railtie
- initializer 'native.initialize' do
- Rails.application.config.assets.precompile += %w( native/android.js native/ios.js native/uwp.js native/chrome.js native/osx.js native/win32.js native/win64.js native/lin32.js native/lin64.js native/web.js native/android.css native/ios.css native/uwp.css native/chrome.css native/osx.css native/win32.css native/win64.css native/lin32.css native/lin64.css native/web.css )
-
+ initializer 'native.active_record' do
ActiveSupport.on_load :active_record do
include Native::Owner
end
+ end
+
+ initializer 'native.sprockets-rails' do
+ Rails.application.config.assets.precompile += %w( native/android.js native/ios.js native/uwp.js native/chrome.js native/osx.js native/win32.js native/win64.js native/lin32.js native/lin64.js native/web.js native/android.css native/ios.css native/uwp.css native/chrome.css native/osx.css native/win32.css native/win64.css native/lin32.css native/lin64.css native/web.css )
end
end
end