Sha256: 5825db13565c4f544ac7ca64f840d7159c4f737f8ba522be75ec38dad1115c41

Contents?: true

Size: 345 Bytes

Versions: 7

Compression:

Stored size: 345 Bytes

Contents

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

  module ClassMethods
    def measured_volume(*fields)
      measured(Measured::Volume, *fields)
    end
  end
end

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

Version data entries

7 entries across 7 versions & 1 rubygems

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