Module: OneSignal::Rails::Plugin

Defined in:
lib/onesignal/rails/plugin.rb,
lib/onesignal/rails/plugin/railtie.rb,
lib/onesignal/rails/plugin/version.rb,
lib/onesignal/rails/plugin/literals.rb,
lib/onesignal/rails/plugin/delivery_error.rb,
lib/onesignal/rails/plugin/delivery_method.rb

Defined Under Namespace

Classes: Configuration, DeliveryError, DeliveryMethod, Railtie

Constant Summary collapse

VERSION =
'1.0.0'
USE_TEMPLATE_SUBJECT =
'USE_TEMPLATE_SUBJECT'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject



27
28
29
# File 'lib/onesignal/rails/plugin.rb', line 27

def self.configuration
  @configuration ||= Configuration.new
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



31
32
33
34
# File 'lib/onesignal/rails/plugin.rb', line 31

def self.configure
  self.configuration ||= Configuration.new
  yield(configuration)
end