On 30 December 2010 18:12, Michael Pavling <pavling@gmail.com> wrote:
> So Eduardo, change the constant:
> SPECIAL_FEATURES = [:none, :top]
>
> ...does that do it?
>
You might also want to change the setter:
def special_feature=(value)
write_attribute(:special_feature, value.to_s.to_sym)
end
Worth a bash... or better yet, I could fire up a console and check...
but I've gotta pack for a trip in the morning, so no time ATM
--
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@googlegroups.com.
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.
No comments:
Post a Comment