Rails write_attribute failing
For some reason with the update to the latest Rails gem the write_attribute method has started to fail for me.
This Does Nothing
def index=(value)
write_attribute(:index, value)
end
def index
read_attribute(:index)
end
This Works
def index=(value)
self[:index] = value
end
def index
return self[:index]
end
Just thought I would share because I couldn't find anything about this on the web.
This Does Nothing
def index=(value)
write_attribute(:index, value)
end
def index
read_attribute(:index)
end
This Works
def index=(value)
self[:index] = value
end
def index
return self[:index]
end
Just thought I would share because I couldn't find anything about this on the web.

0 Comments:
Post a Comment
<< Home