garysweaver / activerecord-be_readonly Goto Github PK
View Code? Open in Web Editor NEWMakes read-only models easier to implement in ActiveRecord 3.x/4.x.
License: MIT License
Makes read-only models easier to implement in ActiveRecord 3.x/4.x.
License: MIT License
Thanks for the convenient library. I am using it and it works very well but only I can not find a way to disable it under some special cases, e.g. generating testing data for testing. Is it possible to allow it works normally under development but does nothing under test.
Hi @garysweaver,
There are a couple of PRs opened, and Rails 6 will be a barrier for many who want to keep using it.
Can we get those PRs merged and new gem cut please?
More generally, is this project still maintained?
Thanks!
You can still delete objects like so:
Patient.all.delete_all
Should be easy to detect ORM and just use different error class, but of course, the gem's name should be changed to something like "activemodel-bereadonly".
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.