any idea how to create a separate class variable to each model inheriting from ActiveRecord::Base?
@@disable_validation will be the same object to all classes that inherit from ActiveRecord::Base, and I don't want that. =[ I need to create a specific counter to each Rails Model.
found it:
any idea how to create a separate class variable to each model inheriting from ActiveRecord::Base?
@@disable_validation will be the same object to all classes that inherit from ActiveRecord::Base, and I don't want that. =[ I need to create a specific counter to each Rails Model.
any tip?
Any idea how to enable partial matching? Make it work like; "select * from posts where title like 'query%'"