From 125ad76a1ca286e473a05ba4ece0813b5be70954 Mon Sep 17 00:00:00 2001 From: Will Bradley Date: Mon, 26 Aug 2013 22:07:41 -0700 Subject: [PATCH] Hacks to allow 1.8.7 --- Gemfile | 2 ++ app/controllers/ipns_controller.rb | 10 +++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Gemfile b/Gemfile index 023493f..921e64e 100644 --- a/Gemfile +++ b/Gemfile @@ -1,5 +1,7 @@ source 'https://rubygems.org' +#ruby '1.9.3' + gem 'rails', '3.2.3' # Bundle edge Rails instead: diff --git a/app/controllers/ipns_controller.rb b/app/controllers/ipns_controller.rb index 36a9407..931556a 100644 --- a/app/controllers/ipns_controller.rb +++ b/app/controllers/ipns_controller.rb @@ -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 \ No newline at end of file +end