-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #115 from fnf-org/kig/fix-redirect
Fixing login/registration redirect loops;
- Loading branch information
Showing
12 changed files
with
93 additions
and
95 deletions.
There are no files selected for viewing
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
%h4 Event Summary | ||
%dl.dl-horizontal | ||
%dt Start Time | ||
%dd= TimeHelper.for_display(@event.start_time.localtime) | ||
%dt End Time | ||
%dd= TimeHelper.for_display(@event.end_time.localtime) | ||
|
||
- if @event.ticket_sales_start_time | ||
%dt Tickets On Sale At | ||
%dd= TimeHelper.for_display(@event.ticket_sales_start_time) | ||
|
||
- if @event.ticket_sales_end_time | ||
%dt Tickets Sales Stop At | ||
%dd= TimeHelper.for_display(@event.ticket_sales_end_time) | ||
|
||
%dt Adult Ticket Price | ||
%dd | ||
= number_to_currency(@event.adult_ticket_price) | ||
- if @event.max_adult_tickets_per_request | ||
%span.muted | ||
(max #{@event.max_adult_tickets_per_request} tickets per request) | ||
%dt Kid Ticket Price | ||
%dd | ||
- if @event.price_rules.any? | ||
%ul | ||
- @event.price_rules.order(:created_at).each do |price_rule| | ||
%li= price_rule.rule_text | ||
%li | ||
Otherwise: | ||
= number_to_currency(@event.kid_ticket_price) | ||
\/ kid | ||
- else | ||
= number_to_currency(@event.kid_ticket_price) | ||
- if @event.max_kid_tickets_per_request | ||
%span.muted | ||
(max #{@event.max_kid_tickets_per_request} kid tickets per request) |
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# frozen_string_literal: true | ||
|
||
ActiveSupport::Notifications.subscribe 'redirect_to.action_controller' do |event| | ||
Rails.logger.warn "NOTIFICATIONS: redirect -> [#{event.payload[:location]}] , status: [#{event.payload[:status]}]".colorize(:yellow) | ||
Rails.logger.warn "NOTIFICATIONS: event: -> [#{event.inspect}".colorize(:magenta) | ||
end |
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