lib/native/railtie.rb in native-2.1.2 vs lib/native/railtie.rb in native-2.1.3
- old
+ new
@@ -7,9 +7,15 @@
ActiveSupport.on_load :active_record do
include Native::Owner
end
end
+ initializer 'native.action_controller' do
+ ActiveSupport.on_load :action_controller do
+ include NativeHelper
+ 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