Permalink
Commits on Nov 9, 2011
  1. Refactor Product.in_taxon scope

    radar committed Nov 9, 2011
  2. Define ascend_by_master_price and descend_by_master_price as class me…

    …thods
    
    This is so we can reference variant_table_name when these methods are called, rather than having to define it before this point.
    
    All in the name of cleaner code
    radar committed Nov 9, 2011
  3. WIP: refactoring product scopes

    radar committed Nov 9, 2011
  4. add spec test to test the eway gateway test mode sends :test and not …

    …:test_mode to ActiveMerchant.
    complistic-gaff committed with radar Nov 9, 2011
  5. Fix eWay test mode so it looks for the :test_mode and not :test prefe…

    …rence
    
    Fixes #554
    
    Conflicts:
    
    	core/app/models/gateway/eway.rb
    complistic-gaff committed with radar Nov 9, 2011
  6. Move product scopes into the models directory

    See 8ced801 for reasonining why
    radar committed Nov 9, 2011
  7. Refactor product scopes

    radar committed Nov 9, 2011
  8. Correct table names in Variant.descend_by_popularity scope

    Also move scope into the models directory, where it belongs, as it is adding additional functionality to a model
    radar committed Nov 9, 2011
  9. [core] fix failing order spec

    On a given day of the week, when the sun is just at the right angle, the outstanding_balance method would return a number like -2.0000000000001, which, of course, is not -2.00 like the test says.
    
    What we care about, as people who deal with money, is that this figure is at least within 1/10th of 1 cent of the correct amount. Anything after that becomes irrelevant.
    radar committed Nov 9, 2011
  10. [auth] fix view file rendering

    joneslee85 committed with radar Nov 7, 2011
  11. [core] omit :class_name

    joneslee85 committed with radar Nov 6, 2011
  12. Refactor <%= %>

    joneslee85 committed with radar Nov 6, 2011
  13. [promo] migration refactor

    joneslee85 committed with radar Nov 6, 2011