Sha256: 1394f0a4e376fe76f23b32a409be3fd1827a34fb8770bacc51ffc9cddb0285fd

Contents?: true

Size: 482 Bytes

Versions: 2

Compression:

Stored size: 482 Bytes

Contents

# frozen_string_literal: true

require_relative "rails/version"
require_relative "rails/configuration"
require_relative "rails/with_encoded_id"

module EncodedId
  module Rails
    # Configuration
    class << self
      attr_reader :configuration

      def configure
        @configuration ||= Configuration.new
        yield(configuration) if block_given?
        configuration
      end
    end
  end

  # Expose directly on EncodedId
  WithEncodedId = Rails::WithEncodedId
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
encoded_id-rails-0.2.0 lib/encoded_id/rails.rb
encoded_id-rails-0.1.0 lib/encoded_id/rails.rb