1. 09 8月, 2014 1 次提交
  2. 06 8月, 2014 3 次提交
  3. 02 8月, 2014 7 次提交
  4. 01 8月, 2014 23 次提交
  5. 31 7月, 2014 6 次提交
    • E
      Refactor join_keys to remove complex conditionals · 377bece6
      eileencodes 提交于
      Pushing conditionals down to through reflection
      
      Only the through association needs the part of this conditional
      that deals with belongs to and polymorphic? so that can be pushed
      down into the ThroughReflection reducing the conditionals.
      
      Remove conditional because we can delegate join keys to source reflection
      
      Remove need for source_macro checking
      
      By adding join_id_for to the other reflections we remove the need
      to cehck against the source_macro and can reduce the conditioanl
      from the original join_id_for(owner)
      
      Using polymorphism instead of testing the source_macro
      
      This case statement in join_association is almost exactly the same
      as the original join_keys code. Testing taht theory by creating a
      new join_dependency_keys(assoc_klass) method.
      
      Refactor join_keys further to be more concise
      
      Fixed format of "#:nodoc:" to "# :nodoc:" where I added them to this
      file.
      377bece6
    • R
      Merge pull request #16351 from... · 84093c66
      Rafael Mendonça França 提交于
      Merge pull request #16351 from eileencodes/finish-refactoring-macro-to-eliminate-checking-against-symbols
      
      Redefine macro checks for reflections
      84093c66
    • C
      Simplify code branch, remove #tap · dccdee7e
      Carlos Antonio da Silva 提交于
      dccdee7e
    • C
      Avoid a new hash object · a9c0eb43
      Carlos Antonio da Silva 提交于
      a9c0eb43
    • C
      Fix assertion arguments order · 4e09c509
      Carlos Antonio da Silva 提交于
      4e09c509
    • C
      Avoid creating an extra hash · c1dadf3d
      Carlos Antonio da Silva 提交于
      c1dadf3d