Sha256: 4aa6ee05f545293c50131423becb83da5cc06d6bd65d8035dc6e352301f99586

Contents?: true

Size: 385 Bytes

Versions: 13

Compression:

Stored size: 385 Bytes

Contents

require 'petergate/view_helpers'
module Petergate
  class Railtie < Rails::Railtie
    initializer "petergate.libs" do
      ActiveSupport.on_load(:action_controller) do
        ActionController::Base.send(:include, Petergate::ControllerMethods)
      end

      ActiveSupport.on_load(:active_record) do
        User.send(:include, Petergate::ModelMethods)
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
petergate-0.1.18 lib/petergate/railtie.rb
petergate-0.1.17 lib/petergate/railtie.rb
petergate-0.1.14 lib/petergate/railtie.rb
petergate-0.1.13 lib/petergate/railtie.rb
petergate-0.1.12 lib/petergate/railtie.rb
petergate-0.1.11 lib/petergate/railtie.rb
petergate-0.1.10 lib/petergate/railtie.rb
petergate-0.1.9 lib/petergate/railtie.rb
petergate-0.1.8 lib/petergate/railtie.rb
petergate-0.1.7 lib/petergate/railtie.rb
petergate-0.1.6 lib/petergate/railtie.rb
petergate-0.1.5 lib/petergate/railtie.rb
petergate-0.1.4 lib/petergate/railtie.rb