Skip to content

Commit

Permalink
resolve merge conflicts in schema.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
winsonwan committed Apr 17, 2024
2 parents 65d2d48 + 8f39d59 commit 8cc0fdf
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 49 deletions.
1 change: 0 additions & 1 deletion app/controllers/store_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,6 @@ def referer_target
redirect_target =
case params[:referer].to_s
when 'donate' then quick_donate_path(:account_code_string => params[:account_code_string]) # no @customer assumed
when 'donate_to_fund' then donate_to_fund_path(params[:account_code_id], @customer)
when 'subscribe' then store_subscribe_path(@customer,promo_code_args)
when 'index' then store_path(@customer, promo_code_args.merge(:what => params[:what], :showdate_id => params[:showdate_id]))
else store_path(@customer,promo_code_args)
Expand Down
2 changes: 1 addition & 1 deletion app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def display_customer_actions?
:customers => [:show, :edit, :change_password_for, :change_secret_question],
:vouchers => [:index],
:orders => [:index],
:store => [:index, :subscribe, :donate, :donate_to_fund, :shipping_address, :checkout]
:store => [:index, :subscribe, :donate, :shipping_address, :checkout]
}
! @customer.try(:new_record?) &&
(allowed_actions[controller.controller_name.to_sym] || {}).include?(action_name.to_sym)
Expand Down
2 changes: 0 additions & 2 deletions app/views/options/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@
default_retail_account_code |
default_donation_account_code |
default_donation_account_code_with_subscriptions |
quick_donation_banner |
quick_donation_explanation |
quick_donation_redirect |
donation_ack_from |
) |
Expand Down
29 changes: 0 additions & 29 deletions app/views/store/donate_to_fund.html.haml

This file was deleted.

11 changes: 0 additions & 11 deletions config/locales/en.option_descriptions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,17 +107,6 @@ en:
Auto-generated confirmation emails for online donations will appear to be
signed by this person. Example: "Bob Jones, Development Chair"
quick_donation_banner: >
The banner text that appears at the top of the "donate instantly"
(donate by credit card without logging in) page.
quick_donation_explanation: >
Explanatory text that appears on the "donate instantly" page. Basic
HTML is allowed. For example, you could direct patrons who wish to
donate by check to download a form or call the development office.
quick_donation_redirect: >
If not blank, the absolute URL to which the patron is redirected after
Expand Down
1 change: 0 additions & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@

get '/store/(:customer_id)' => 'store#index', :defaults => {:customer_id => nil}, :as => 'store'
get '/subscribe/(:customer_id)' => 'store#subscribe', :defaults => {:customer_id => nil}, :as => 'store_subscribe'
# get '/donate_to_fund/:id/(:customer_id)' => 'store#donate_to_fund', :defaults => {:customer_id => nil}, :as => 'donate_to_fund'
get '/donate_to_fund/(:id)/(:customer_id)', :defaults => {:customer_id => nil}, to: 'store#donate_to_fund_redirect'
get '/store/cancel' => 'store#cancel', :as => 'store_cancel'

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
class RemoveQuickDonationFieldsFromOptions < ActiveRecord::Migration
def change
end
end
4 changes: 0 additions & 4 deletions spec/controllers/store_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,6 @@
before :each do ; @action = :subscribe ; end
it_should_behave_like 'initial visit'
end
describe 'to :donate_to_fund' do
before :each do ; @action = :donate_to_fund ; @extras = { id: '2' }; end
it_should_behave_like 'initial visit'
end
end

describe "on InvalidAuthenticityToken exception" do
Expand Down

0 comments on commit 8cc0fdf

Please sign in to comment.