Closed alex-zige closed 11 years ago
I wonder if there's a way to use reserved "attributes", for instance, i would like to do have an attributes called "attributes". but seems not working :(
class MyModel include Virtus.model attribute :attributes end
Any thoughts?
Yes it is now possible if you disable mass-assignment:
class MyModel include Virtus.model(:mass_assignment => false) attribute :attributes end
I wonder if there's a way to use reserved "attributes", for instance, i would like to do have an attributes called "attributes". but seems not working :(
class MyModel include Virtus.model attribute :attributes end
Any thoughts?