app/controllers/iugu/plan_controller.rb in iugusdk-1.0.0.alpha.25 vs app/controllers/iugu/plan_controller.rb in iugusdk-1.0.0.alpha.26

- old
+ new

@@ -1,5 +1,7 @@ class Iugu::PlanController < Iugu::AccountSettingsController + before_filter(:only => [:index, :change]) { |c| c.must_be :owner, :id } + def index params[:id] ? @account = current_user.accounts.find(params[:id]) : @account = current_user_account.account get_index_data render 'iugu/plan/index' end