Sha256: ee349bbbb40bb37b5038870563b09fb3718a860ea6fb909ebd9b0c23a897d7fa

Contents?: true

Size: 892 Bytes

Versions: 1

Compression:

Stored size: 892 Bytes

Contents

require 'rails/railtie'

module Native
    class Railtie < Rails::Railtie

        initializer 'native.active_record' do
            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
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
native-2.1.4 lib/native/railtie.rb