Sha256: 2725496b200afec2024265f990302b3f201ad26071b292a472e840a0f8f13048

Contents?: true

Size: 327 Bytes

Versions: 15

Compression:

Stored size: 327 Bytes

Contents

# frozen_string_literal: true

require 'rails/railtie'

module ActsAsFavoritor
  class Railtie < Rails::Railtie
    initializer 'acts_as_favoritor.active_record' do
      ActiveSupport.on_load :active_record do
        include ActsAsFavoritor::Favoritor
        include ActsAsFavoritor::Favoritable
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
acts_as_favoritor-6.0.2 lib/acts_as_favoritor/railtie.rb
acts_as_favoritor-6.0.1 lib/acts_as_favoritor/railtie.rb
acts_as_favoritor-6.0.0 lib/acts_as_favoritor/railtie.rb
acts_as_favoritor-5.0.3 lib/acts_as_favoritor/railtie.rb
acts_as_favoritor-5.0.2 lib/acts_as_favoritor/railtie.rb
acts_as_favoritor-5.0.1 lib/acts_as_favoritor/railtie.rb
acts_as_favoritor-5.0.0 lib/acts_as_favoritor/railtie.rb
acts_as_favoritor-4.0.3 lib/acts_as_favoritor/railtie.rb
acts_as_favoritor-4.0.2 lib/acts_as_favoritor/railtie.rb
acts_as_favoritor-4.0.1 lib/acts_as_favoritor/railtie.rb
acts_as_favoritor-4.0.0 lib/acts_as_favoritor/railtie.rb
acts_as_favoritor-3.0.0 lib/acts_as_favoritor/railtie.rb
acts_as_favoritor-2.1.2 lib/acts_as_favoritor/railtie.rb
acts_as_favoritor-2.1.1 lib/acts_as_favoritor/railtie.rb
acts_as_favoritor-2.1.0 lib/acts_as_favoritor/railtie.rb