Using Columns with Reserved Names in Rails

From Rails Mailing List : How to access column with a reserved name?





def new_column
read_attribute 'old_column'
end

def new_column=(value)
write_attribute 'old_column', value
end


Post a Comment

Popular posts from this blog

Converting Array to List in Scala

I ported a JavaScript app to Dart. Here's what I learned.

Minification is not enough, you need tree shaking