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' source 'https://rubygems.org'
#ruby '1.9.3'
gem 'rails', '3.2.3' gem 'rails', '3.2.3'
# Bundle edge Rails instead: # Bundle edge Rails instead:

View File

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