
Security News
Oxlint Introduces Type-Aware Linting Preview
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
=TimeLine Track the entire life cycle of ActiveRecord models.
==Installation Add the gem to your Gemfile
gem "models_timeline"
Copy some migration stuff:
rake timeline:install:migrations rake db:migrate
Add to your route.rb file:
mount ModelsTimeline::Engine => "/timeline"
Requires Ruby 1.9.2 or later.
==Usage Call timeline in an ActiveRecord class and pass the name of the attributes you wish to track of your Model.
Track all attributes change of your AR model:
class Product < ActiveRecord::Base timeline end
This means that every attributes changes will be tracked.
Track one or more attributes:
class Product < ActiveRecord::Base timeline(:price, :name) end
Only the changes of name and price will be tracked.
To see the tracked changes go to:
http://domain:port/models_timeline
Development Questions or problems? Please post them on the issue tracker. You can contribute changes by forking the project and submitting a pull request. You can ensure the tests passing by running bundle and rake.
This gem is created by Angelo Capilleri and is under the MIT License.
FAQs
Unknown package
We found that models_timeline demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.