active-hash/active_hash: A readonly ActiveRecord-esque base class that lets you use a hash, a Yaml file or a custom file as the datasource
03-Apr-2026 249
ActiveHash is a simple base class that allows you to use a ruby hash as a readonly datasource for an ActiveRecord-like model.
ActiveHash assumes that every hash has an :id key, which is what you would probably store in a database. This allows you to seamlessly upgrade from ActiveHash objects to full ActiveRecord objects without having to change any code in your app, or any foreign keys in your database.
active-hash/active_hash: A readonly ActiveRecord-esque base class that lets you use a hash, a Yaml file or a custom file as the datasource #ruby #rubydeveloper #rubyonrails #active-hash/active_hash: #readonly #ActiveRecord-esque #class #hash, #custom #datasource #active-hash/active_hash: #activerecord-esque #class https://rubyonrails.ba/link/active-hash-active_hash-a-readonly-activerecord-esque-base-class-that-lets-you-use-a-hash-a-yaml-file-or-a-custom-file-as-the-datasource-1