Created
October 11, 2011 19:11
-
-
Save murraycs/1279084 to your computer and use it in GitHub Desktop.
Line 15 throws the error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BaseController < ApplicationController | |
require 'simplepay/authentication' | |
require 'simplepay/rails' | |
before_filter :add_admin_links | |
before_filter :add_subscription_return_url | |
private | |
def add_admin_links | |
links = [ | |
{:name => :'activerecord.models.subscription'.l(:count => 'many'), :url => subscriptions_url}, | |
{:name => :'activerecord.models.user_subscription'.l(:count => 'many'), :url => user_subscriptions_url} | |
] | |
@admin_nav_links = @admin_nav_links + links | |
end | |
def add_subscription_return_url | |
if params[:subscription_return_to] | |
session[:subscription_return_to] = params[:subscription_return_to] | |
session[:return_to] = params[:subscription_return_to] | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment