ActiveRecord: Adding Boolean methods for DateTime columns

This page summarizes the projects mentioned and recommended in the original post on /r/rails

Our great sponsors
  • PopRuby - Clothing and Accessories for Ruby Developers
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern API for authentication & user identity.
  • Onboard AI - ChatGPT with full context of any GitHub repo.
  • rubygems

    Library packaging and distribution for Ruby.

    gemfile(true) do source "https://rubygems.org"

  • time_for_a_boolean

    Back boolean concepts like deleted?, published?, or active? with timestamps

    There's a gem that handles this behavior. I haven't personally used it, but I heard about it on the Bikeshed podcast. time_for_a_boolean

  • PopRuby

    PopRuby: Clothing and Accessories for Ruby Developers. Fashion meets Ruby! Shop our fun Ruby-inspired apparel and accessories designed to celebrate the joy and diversity of the Ruby community.

  • state_machines

    Adds support for creating state machines for attributes on any Ruby class

    Might this be better handled with a state machine with active record integration?

  • state_machines-activerecord

    StateMachines Active Record Integration

    Might this be better handled with a state machine with active record integration?

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts