Sha256: b97a3bd846a3889cb54014fed4ad6f29c69763bad92d56cc16a3c2f4409c9340

Contents?: true

Size: 873 Bytes

Versions: 3

Compression:

Stored size: 873 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/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-0.6.2 lib/encoded_id/rails.rb
encoded_id-rails-0.6.1 lib/encoded_id/rails.rb
encoded_id-rails-0.6.0 lib/encoded_id/rails.rb