On Feb 7, 7:00 pm, Solly
<directxma...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> 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?
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
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.