Sha256: 132bdb2a79251ef89113a9b5d14b1704387ecbb422c260ce16a599d34415854a
Contents?: true
Size: 755 Bytes
Versions: 5
Compression:
Stored size: 755 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 ActiveSupport.on_load :active_record do include DeviseOnesignal::Owner end end end end
Version data entries
5 entries across 5 versions & 1 rubygems