Sha256: 0e5ae1eeecb7973cd561154bef2a9e57dbd68d1b5e09be401167eb55be9901e6

Contents?: true

Size: 956 Bytes

Versions: 3

Compression:

Stored size: 956 Bytes

Contents

# frozen_string_literal: true

require_relative "rails/version"
require_relative "rails/configuration"
require_relative "rails/coder"
require_relative "rails/slugged_id"
require_relative "rails/slugged_id_parser"
require_relative "rails/annotated_id"
require_relative "rails/annotated_id_parser"
require_relative "rails/salt"
require_relative "rails/encoder_methods"
require_relative "rails/query_methods"
require_relative "rails/finder_methods"
require_relative "rails/path_param"
require_relative "rails/slugged_path_param"
require_relative "rails/model"

module EncodedId
  module Rails
    # Configuration
    class << self
      def configuration
        @configuration ||= Configuration.new
      end

      def configure
        yield(configuration) if block_given?
        configuration
      end
    end
  end

  # Expose directly on EncodedId
  Model = Rails::Model
  PathParam = Rails::PathParam
  SluggedPathParam = Rails::SluggedPathParam
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
encoded_id-rails-1.0.0.beta3 lib/encoded_id/rails.rb
encoded_id-rails-1.0.0.beta2 lib/encoded_id/rails.rb
encoded_id-rails-1.0.0.beta1 lib/encoded_id/rails.rb