Sha256: b2de1144ec01b29281e1e04c929074a60b5eb1927e8a89ad4a3c50084cbec807

Contents?: true

Size: 637 Bytes

Versions: 6

Compression:

Stored size: 637 Bytes

Contents

require 'rails'

module DeviseOnesignal
    class Railtie < Rails::Railtie

        initializer 'devise-onesignal.initialize' do
            abort 'Set your OneSignal app id in `config/initializers/devise-onesignal.rb`' if DeviseOnesignal.configuration && ( DeviseOnesignal.configuration.app_id.nil? || DeviseOnesignal.configuration.app_id == '' )
            ActiveSupport.on_load :action_controller do
                include DeviseOnesignal::DeviceConcern
            end
            ActiveSupport.on_load :action_view do
                include DeviseOnesignal::DeviceHelper
            end
        end

    end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
devise-onesignal-3.1.0 lib/devise-onesignal/railtie.rb
devise-onesignal-3.0.2 lib/devise-onesignal/railtie.rb
devise-onesignal-3.0.1 lib/devise-onesignal/railtie.rb
devise-onesignal-3.0.0 lib/devise-onesignal/railtie.rb
devise-onesignal-2.0.1 lib/devise-onesignal/railtie.rb
devise-onesignal-2.0.0 lib/devise-onesignal/railtie.rb