1. 27 1月, 2013 3 次提交
    • L
      Use `silence` instead of `quietly` to silence the `CheckPending` middleware. · 70af2bde
      Lucas Mazza 提交于
      `Kernel.quietly` silences `STDOUT` and `STDERR`, which is useless if
      the logger is writing to a file, while `AS::Logger#silence` swaps the
      logger level to `ERROR`.
      
      Related to #8820 and #8052.
      70af2bde
    • A
      Simplify type casting code for timezone aware attributes · 41ff6a10
      Andrew White 提交于
      With the addition of String#in_time_zone and Date#in_time_zone
      we can simplify the type casting code by checking if the value
      has an `in_time_zone` method.
      41ff6a10
    • L
      Fix handling of dirty time zone aware attributes · bc982cbc
      Lilibeth De La Cruz 提交于
      Previously, when `time_zone_aware_attributes` were enabled, after
      changing a datetime or timestamp attribute and then changing it back
      to the original value, `changed_attributes` still tracked the
      attribute as changed. This caused `[attribute]_changed?` and
      `changed?` methods to return true incorrectly.
      
      Example:
      
          in_time_zone 'Paris' do
            order = Order.new
            original_time = Time.local(2012, 10, 10)
            order.shipped_at = original_time
            order.save
            order.changed? # => false
      
            # changing value
            order.shipped_at = Time.local(2013, 1, 1)
            order.changed? # => true
      
            # reverting to original value
            order.shipped_at = original_time
            order.changed? # => false, used to return true
          end
      bc982cbc
  2. 26 1月, 2013 1 次提交
  3. 25 1月, 2013 2 次提交
  4. 24 1月, 2013 2 次提交
  5. 23 1月, 2013 1 次提交
  6. 22 1月, 2013 7 次提交
  7. 21 1月, 2013 2 次提交
  8. 20 1月, 2013 1 次提交
  9. 19 1月, 2013 1 次提交
  10. 18 1月, 2013 7 次提交
  11. 17 1月, 2013 1 次提交
  12. 16 1月, 2013 2 次提交
  13. 15 1月, 2013 1 次提交
  14. 14 1月, 2013 1 次提交
  15. 13 1月, 2013 1 次提交
  16. 12 1月, 2013 3 次提交
  17. 09 1月, 2013 2 次提交
  18. 08 1月, 2013 2 次提交