upmin / upmin-admin-ruby

Framework for creating powerful admin backends with minimal effort in Ruby on Rails.
MIT License
755 stars 66 forks source link

Database column with name "title" returns wrong data #107

Closed jimmynguyc closed 9 years ago

jimmynguyc commented 9 years ago

Just use any table with a column named "title". The value will always be "TableName # 2" because it referes to Upmin::Model#title.

Problem is that Upmin::Attribute#value refers to Upmin::Model and not the actual ActiveRecord model.

jimmynguyc commented 9 years ago

Made a pull request https://github.com/upmin/upmin-admin-ruby/pull/108