Skip to content
Commits on Nov 13, 2012
  1. @nikitug

    Use nil? instead of blank? to check dynamic finder result

    nikitug committed
    It's safe to use `nil?` instead of `blank?` because it's impossible to get an array on finder with bang;
    `all_by` finder matches against regex without bang: `when /^find_(all_|last_)?by_([_a-zA-Z]\w*)$/`.
    Fixes #7238
Commits on Nov 9, 2012
  1. @nikitug

    Backport #8078: Fix `attributes_before_type_cast` for serialised attr…

    nikitug committed with nikitug
    Public method attributes_before_type_cast used to return internal AR structure (ActiveRecord::AttributeMethods::Serialization::Attribute), patch fixes this. Now behaves like read_attribute_before_type_cast and returns unserialised values.
Something went wrong with that request. Please try again.