Is it possible to offset the "damage" from rails by writing your own attr reader/writer?
Sent from my phone On 2012-10-18, at 4:39 PM, Karl Smith <[email protected]> wrote: > Pretty simple, I need to disable time zone conversion for specific columns. I > will handle any TZ conversion manually, but I need Rails 3 to forego > conversion in both writing and reading, and any AREL functions. But, I don't > want to disable the conversion for non-specified attributes. > > I know how to disable it for reading: > >> self.skip_time_zone_conversion_for_attributes = [:test_timestamp] > > But this only works for reading. When writing the attribute, it still > converts to UTC (yes, I tested this in 3.2.8). > > How? > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Core" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/rubyonrails-core/-/9JjYyc88WlsJ. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-core?hl=en. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
