Sha256: 1a846e7165f803a7e3bada5718003fab552e66800c2fec2200db1a9ac4c77621

Contents?: true

Size: 315 Bytes

Versions: 22

Compression:

Stored size: 315 Bytes

Contents

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

22 entries across 22 versions & 1 rubygems

Version Path
measured-rails-0.0.3 lib/measured/rails/units/length.rb
measured-rails-0.0.1 lib/measured/rails/units/length.rb