RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: celsodantas
self.class_variable_set :@@variable_name, "initial value"
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 idea how to enable partial matching? Make it work like; "select * from posts where title like 'query%'"