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-2.5.0 lib/measured/rails/units/length.rb
measured-rails-2.4.0 lib/measured/rails/units/length.rb
measured-rails-2.3.0 lib/measured/rails/units/length.rb
measured-rails-2.2.0 lib/measured/rails/units/length.rb
measured-rails-2.1.0 lib/measured/rails/units/length.rb
measured-rails-2.0.0 lib/measured/rails/units/length.rb
measured-rails-2.0.0.pre4 lib/measured/rails/units/length.rb
measured-rails-1.6.0 lib/measured/rails/units/length.rb
measured-rails-1.5.0 lib/measured/rails/units/length.rb
measured-rails-1.4.0 lib/measured/rails/units/length.rb
measured-rails-1.3.1 lib/measured/rails/units/length.rb
measured-rails-1.3.0 lib/measured/rails/units/length.rb
measured-rails-1.2.0 lib/measured/rails/units/length.rb
measured-rails-1.1.0 lib/measured/rails/units/length.rb
measured-rails-0.0.10 lib/measured/rails/units/length.rb
measured-rails-0.0.9 lib/measured/rails/units/length.rb
measured-rails-0.0.8 lib/measured/rails/units/length.rb
measured-rails-0.0.7 lib/measured/rails/units/length.rb
measured-rails-0.0.6 lib/measured/rails/units/length.rb
measured-rails-0.0.5 lib/measured/rails/units/length.rb