Module: Pushify::Rails

Defined in:
lib/pushify/rails.rb

Defined Under Namespace

Classes: Assets

Class Method Summary collapse

Class Method Details

.initializeObject



6
7
8
9
10
11
12
13
14
15
# File 'lib/pushify/rails.rb', line 6

def self.initialize
  ActionView::Base.send(:include, Pushify::Helper)
  

  if (::Rails.version.start_with?("2"))
    if defined?(::Rails.configuration) && ::Rails.configuration.respond_to?(:middleware)
      ::Rails.configuration.middleware.use("Pushify::Rack")
    end
  end
end