Hacks to allow 1.8.7

This commit is contained in:
Will Bradley 2013-08-26 22:07:41 -07:00
parent 9e4b79a353
commit 125ad76a1c
2 changed files with 7 additions and 5 deletions

View File

@ -1,5 +1,7 @@
source 'https://rubygems.org'
#ruby '1.9.3'
gem 'rails', '3.2.3'
# Bundle edge Rails instead:

View File

@ -1,6 +1,6 @@
class IpnsController < ApplicationController
load_and_authorize_resource :ipn, :except => [:new, :create]
before_filter :authenticate_user!
before_filter :authenticate_user!, :except => [:new, :create]
protect_from_forgery :except => [:create]
@ -19,9 +19,9 @@ class IpnsController < ApplicationController
@ipn.data = params.to_json
@ipn.save
render :nothing => true
unless @ipn.validate!
Rails.logger.error "Unable to validate IPN: #{@ipn.inspect}"
end
#unless @ipn.validate!
# Rails.logger.error "Unable to validate IPN: #{@ipn.inspect}"
#end
end
def validate
@ -41,4 +41,4 @@ class IpnsController < ApplicationController
end
end
end
end