Sha256: 72e44d587d80d1d880679951b027889c1ae9bba7ea350a058f076c83ecc6a8b1

Contents?: true

Size: 1007 Bytes

Versions: 4

Compression:

Stored size: 1007 Bytes

Contents

require 'rails/railtie'

module NativeGap
    class Railtie < Rails::Railtie

        initializer 'nativegap.mozaic' do
            Mozaic.configure do |config|
                config.define_component 'nativegap/assets'
            end
        end

        initializer 'nativegap.active_record' do
            ActiveSupport.on_load :active_record do
                include NativeGapModel
            end
        end

        initializer 'nativegap.action_controller' do
            ActiveSupport.on_load :action_controller do
                include NativeGapHelper
                include NativeGapController
            end
        end

        initializer 'nativegap.sprockets-rails' do
            Rails.application.config.assets.precompile += %w( nativegap/android.js nativegap/ios.js nativegap/windows.js nativegap/chrome.js nativegap/web.js nativegap/android.css nativegap/ios.css nativegap/windows.css nativegap/chrome.css nativegap/web.css )
        end

    end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
nativegap-3.0.3 lib/native_gap/railtie.rb
nativegap-3.0.2 lib/native_gap/railtie.rb
nativegap-3.0.1 lib/native_gap/railtie.rb
nativegap-3.0.0 lib/native_gap/railtie.rb