Sha256: e0de2ed9578dd342934faad668cd09c88c0995078e23f608969e20e01bdc80d1

Contents?: true

Size: 387 Bytes

Versions: 6

Compression:

Stored size: 387 Bytes

Contents

require "rails/railtie"

module Pose

  class Railtie < Rails::Railtie

    # Add the Pose additions to ActiveRecord::Base once it is loaded.
    initializer 'Pose.base_additions' do
      ActiveSupport.on_load :active_record do
        extend Pose::BaseAdditions
      end
    end

    # Load the Pose rake tasks.
    rake_tasks do
      load "tasks/pose_tasks.rake"
    end
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
pose-1.2.0 lib/pose/railtie.rb
pose-1.1.3 lib/pose/railtie.rb
pose-1.1.2 lib/pose/railtie.rb
pose-1.1.1 lib/pose/railtie.rb
pose-1.1.0 lib/pose/railtie.rb
pose-1.0.0 lib/pose/railtie.rb