Sha256: 1e691a5631be85b6614c0d466e76c050e4864584205e0ac7a8373a8180d75e96

Contents?: true

Size: 998 Bytes

Versions: 1

Compression:

Stored size: 998 Bytes

Contents

# frozen_string_literal: true

module Orthoses
  module Rails
    class Application
      def initialize(loader)
        @loader = loader
      end

      def call
        loader = @loader
        Orthoses::Builder.new do
          use Orthoses::ActiveModel::HasSecurePassword
          use Orthoses::ActiveRecord::BelongsTo
          use Orthoses::ActiveRecord::DelegatedType
          use Orthoses::ActiveRecord::Enum
          use Orthoses::ActiveRecord::GeneratedAttributeMethods
          use Orthoses::ActiveRecord::HasMany
          use Orthoses::ActiveRecord::HasOne
          use Orthoses::ActiveRecord::Relation
          use Orthoses::ActiveRecord::Scope

          use Orthoses::ActiveSupport::ClassAttribute
          use Orthoses::ActiveSupport::Concern
          use Orthoses::ActiveSupport::Delegation
          use Orthoses::ActiveSupport::Configurable
          use Orthoses::ActiveSupport::MattrAccessor
          reset_runner loader
        end.call
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
orthoses-rails-1.0.0 lib/orthoses/rails/application.rb