Sha256: c1e383de730e75a5896681d3ddda6cfee2dfb53126a6679b43364b03e5f9b160

Contents?: true

Size: 330 Bytes

Versions: 3

Compression:

Stored size: 330 Bytes

Contents

module Mobylette
  class Railtie < ::Rails::Railtie
    initializer :mobylette do
      ActiveSupport.on_load(:action_controller) do
        ::ActionController::Base.send(:include, Mobylette::Controllers::RespondToMobileRequests)
        ::ActionController::Base.helper Mobylette::Controllers::Helpers
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mobylette-1.2.0 lib/mobylette/railtie.rb
mobylette-1.1.0 lib/mobylette/railtie.rb
mobylette-1.0.0 lib/mobylette/railtie.rb