I have to connect to an existing database used by our freeradius server. One table has a column called attribute which I'm trying to access.
When accessing, I get his error:
ActiveRecord::DangerousAttributeError
attribute? is defined by ActiveRecord
I've tried to select and rename this column in my model:
def self.default_scope
Radcheck.select("attribute as newattribute")
end
But that's not working either.
Can anyone recommend a way around this? I'd really like to rename the column in rails!