Sha256: 7693fb54f484e1ad62168e12937644fb2d38759412aa19597e165f8e972209f0

Contents?: true

Size: 338 Bytes

Versions: 1

Compression:

Stored size: 338 Bytes

Contents

require 'rails'

module ActsAsFavoritor

    class Railtie < Rails::Railtie

        initializer 'acts_as_favoritor.active_record' do |app|
            ActiveSupport.on_load :active_record do
                include ActsAsFavoritor::Favoritor
                include ActsAsFavoritor::Favoritable
            end
        end

    end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
acts_as_favoritor-1.0.0 lib/acts_as_favoritor/railtie.rb