Sha256: 5fbc61a05f4225733025d1ef645ef78f4c3f684dc10b1947889e8a07d5f5bbce

Contents?: true

Size: 392 Bytes

Versions: 4

Compression:

Stored size: 392 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 ActiveRecordBaseAdditions
      end
    end

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pose-3.0.0 lib/pose/railtie.rb
pose-2.1.0 lib/pose/railtie.rb
pose-2.0.1 lib/pose/railtie.rb
pose-2.0.0 lib/pose/railtie.rb