Commit Graph
15 Commits
Author SHA1 Message Date
Brenda Wallace a62b668781 Fix up duplicate order item in controller spec, and DRY 2017-11-29 20:59:37 +13:00
Brenda Wallace 07c135eeb5 before_filter is now before_action 2016-11-26 17:20:13 +13:00
Daniel O'Connor 4b4e0cf69a $ rubocop --only HashSyntax --auto-correct
483 files inspected, 2018 offenses detected, 2018 offenses corrected
2016-05-19 15:53:11 -04:00
Taylor Griffin a35a573b2b update follow member code to be rails 4 compatible 2014-12-14 14:51:18 +11:00
Yoong Kang Lim 81d1189203 Added a before_filter for any action that requires authentication. Will redirect to login page if not logged in 2014-11-24 22:12:42 +11:00
Taylor Griffin acbd3f9a9e implement strong parameters instead of protected attributes 2014-11-18 20:08:54 +11:00
Skud a3b7822268 Review and cleanup of JSON API
Removed JSON from classes that shouldn't have it.
(PT: https://www.pivotaltracker.com/story/show/54570954)

Also found a couple of controllers with broken authorization (i.e. not
checking CanCan). Incidentally, this also fixes the comment form bug at
https://www.pivotaltracker.com/story/show/54328716.
2013-08-05 13:29:07 +10:00
Skud c7c2a94078 pass validation errors through controller 2013-05-28 14:14:59 +10:00
Skud 98beebd697 fixed bug with non-int prices
now if you choose to pay 33.33 it doesn't round to 33.00
also removed PUT and DELETE actions from order items
(we don't want them for now, can reinstate later if/when we do.)
2013-05-22 11:51:38 +10:00
Skud 257db239fd remove unneeded edit/new actions from order_item 2013-05-22 11:25:48 +10:00
Skud 89069b4bd2 don't allow multiple order items per order 2013-05-22 11:22:10 +10:00
Skud c13ae183ec order things direct from the /shop page 2013-05-16 00:24:51 +10:00
Skud 3e1202cd62 prettify display of orders 2013-05-15 15:52:10 +10:00
Skud a047f60af3 added cancan rules for order items 2013-05-15 14:15:08 +10:00
Skud 7d74203735 rails g scaffold OrderItem... 2013-05-15 13:47:16 +10:00