Sha256: 900c0f50999479f62a8cdf39ad7caecf9395060eca56104c3cd3a0a2e7a7cc86

Contents?: true

Size: 345 Bytes

Versions: 7

Compression:

Stored size: 345 Bytes

Contents

# frozen_string_literal: true
module Measured::Rails::ActiveRecord::Length
  extend ActiveSupport::Concern

  module ClassMethods
    def measured_length(*fields)
      measured(Measured::Length, *fields)
    end
  end
end

ActiveSupport.on_load(:active_record) do
  ::ActiveRecord::Base.send :include, Measured::Rails::ActiveRecord::Length
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
measured-rails-2.8.2 lib/measured/rails/units/length.rb
measured-rails-2.8.1 lib/measured/rails/units/length.rb
measured-rails-2.8.0 lib/measured/rails/units/length.rb
measured-rails-2.7.1 lib/measured/rails/units/length.rb
measured-rails-2.6.0 lib/measured/rails/units/length.rb
measured-rails-2.5.2 lib/measured/rails/units/length.rb
measured-rails-2.5.1 lib/measured/rails/units/length.rb