Shopify / measured

Encapsulate measurements and their units in Ruby and Ruby on Rails.
MIT License
337 stars 28 forks source link

Merge `measured-rails` into this gem #155

Closed paracycle closed 5 months ago

paracycle commented 5 months ago

This is an initial attempt at reducing the support burden of having 2 separate gems for measured behaviour, when we can easily have a single gem that (conditionally) loads a Railtie which does all Active Record registrations.

This allows the gem to work as a simple Ruby gem, as well as a Rails extension.

This PR copies all of the current behaviour of measured-rails into this gem and makes it load when ActiveRecord is loaded.

paracycle commented 5 months ago

I merged the README sections from the measured-rails gem into this gem's README too now.