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'
|
||||
|
||||
#ruby '1.9.3'
|
||||
|
||||
gem 'rails', '3.2.3'
|
||||
|
||||
# Bundle edge Rails instead:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user