Hacks to allow 1.8.7
This commit is contained in:
parent
9e4b79a353
commit
125ad76a1c
2
Gemfile
2
Gemfile
|
@ -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:
|
||||||
|
|
|
@ -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
|
||||||
|
@ -41,4 +41,4 @@ class IpnsController < ApplicationController
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user