Sha256: 4890e9911aa35e169b0ed6cfeb93e0822bdab6a49f62b49dfed4afafaf986c4a

Contents?: true

Size: 1.11 KB

Versions: 4

Compression:

Stored size: 1.11 KB

Contents

# -*- encoding: utf-8 -*-
# -*- frozen_string_literal: true -*-
# -*- warn_indent: true -*-

require "unit_measurements/rails/version"
require "unit_measurements"

require "active_support/all"
require "active_record"
require "active_model"
require "active_model/validations"

module UnitMeasurements
  # The +UnitMeasurements::Rails+ integrates the
  # {unit_measurements}[https://github.com/shivam091/unit_measurements]
  # gem into Ruby on Rails applications.
  #
  # It integrates +unit_measurements+ into Ruby on Rails applications, encompassing
  # modules and classes for ActiveRecord support, Railties, and custom errors.
  #
  # @see ActiveRecord
  # @see Railtie
  # @see BaseError
  # @author {Harshal V. Ladhe}[https://shivam091.github.io/]
  # @since 0.2.0
  module Rails
    # This class serves as the base for custom errors within the +UnitMeasurements::Rails+
    # module.
    #
    # @author {Harshal V. Ladhe}[https://shivam091.github.io/]
    # @since 0.2.0
    class BaseError < StandardError; end
  end
end

require "unit_measurements/rails/active_record"

require "unit_measurements/rails/railtie" if defined?(Rails)

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
unit_measurements-rails-1.4.0 lib/unit_measurements/rails/base.rb
unit_measurements-rails-1.3.0 lib/unit_measurements/rails/base.rb
unit_measurements-rails-1.2.0 lib/unit_measurements/rails/base.rb
unit_measurements-rails-1.1.0 lib/unit_measurements/rails/base.rb