app/controllers/spree/base_controller.rb in spree-0.0.9 vs app/controllers/spree/base_controller.rb in spree-0.2.0
- old
+ new
@@ -1,18 +1,8 @@
-class Spree::BaseController < ApplicationController
- # See ActionController::RequestForgeryProtection for details
- # Uncomment the :secret if you're not using the cookie session store
- #protect_from_forgery :secret => '55a66755bef2c41d411bd5486c001b16'
+class Spree::BaseController < ResourceController::Base
- #include AuthenticatedSystem
- #include RoleRequirementSystem
-
CalendarDateSelect.format = :american
-
- # unique cookie name to distinguish our session data from others'
- session :session_key => SESSION_KEY
-
#model :order, :address
filter_parameter_logging "password"
def find_cart
@@ -37,11 +27,6 @@
def access_forbidden
render :text => 'Access Forbidden', :layout => true, :status => 401
end
- # Instantiates the selected PAYMENT_GATEWAY and initializes with GATEWAY_OPTIONS (configured in environment.rb)
- def payment_gateway
- ActiveMerchant::Billing::Base.gateway_mode = :test unless RAILS_ENV == "production"
- PAYMENT_GATEWAY.constantize.new(GATEWAY_OPTIONS)
- end
end
\ No newline at end of file