Hi, I have an application using STI on a model named Publisher. Publisher uses STI via a column named "service". When I call -- p = Publisher.new(..., :service => "TwitterPublisher") -- the service does not get assigned, yet all other columns do. However, if I later call -- p[:service] = "TwitterPublisher" -- all is well. Any ideas about what is going on? My environment is Ruby 1.9/1.8.6 with Rails 2.3.5 running on MinGW(1.9) and Linux (1.8.6 - on Heroku). Any idea as to what is going wrong? Best Regards, Solly
on 2010-02-08 03:21
on 2010-02-08 15:16
On Feb 7, 7:00 pm, Solly <directxma...@gmail.com> wrote: > -- > all is well. Any ideas about what is going on? inheritance_column (service in this case) is automatically protected against mass-assignment. If you examine your logs carefully, you should see some messages about that. --Matt Jones
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.