Skip to content

Commit

Permalink
Remove Deface option "disabled".
Browse files Browse the repository at this point in the history
Disabled option is unnecessary and may just raise deprecation warnings.
  • Loading branch information
futhr committed Jan 25, 2015
1 parent b3ff0bc commit c0eee5c
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 25 deletions.
11 changes: 6 additions & 5 deletions app/overrides/add_authentications_to_account_summary.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Deface::Override.new(virtual_path: 'spree/users/show',
name: 'add_socials_to_account_summary',
insert_after: '[data-hook="account_my_orders"]',
partial: 'spree/users/social',
disabled: false)
Deface::Override.new(
virtual_path: 'spree/users/show',
name: 'add_socials_to_account_summary',
insert_after: '[data-hook="account_my_orders"]',
partial: 'spree/users/social'
)
11 changes: 6 additions & 5 deletions app/overrides/admin_configuration_decorator.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Deface::Override.new(virtual_path: 'spree/admin/shared/sub_menu/_configuration',
name: 'add_social_providers_link_configuration_menu',
insert_bottom: '[data-hook="admin_configurations_sidebar_menu"]',
text: '<%= configurations_sidebar_menu_item Spree.t(:social_authentication_methods), spree.admin_authentication_methods_path %>',
disabled: false)
Deface::Override.new(
virtual_path: 'spree/admin/shared/sub_menu/_configuration',
name: 'add_social_providers_link_configuration_menu',
insert_bottom: '[data-hook="admin_configurations_sidebar_menu"]',
text: '<%= configurations_sidebar_menu_item Spree.t(:social_authentication_methods), spree.admin_authentication_methods_path %>'
)
33 changes: 18 additions & 15 deletions app/overrides/user_registrations_decorator.rb
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
Deface::Override.new(virtual_path: 'spree/user_registrations/new',
name: 'add_socials_to_login_extras',
insert_after: '[data-hook="login_extras"]',
text: '<%= render partial: "spree/shared/social" unless session[:omniauth] %>',
disabled: false)
Deface::Override.new(
virtual_path: 'spree/user_registrations/new',
name: 'add_socials_to_login_extras',
insert_after: '[data-hook="login_extras"]',
text: '<%= render partial: "spree/shared/social" unless session[:omniauth] %>'
)

Deface::Override.new(virtual_path: 'spree/user_sessions/new',
name: 'add_socials_to_login_extras',
insert_after: '[data-hook="login_extras"]',
partial: 'spree/shared/social',
disabled: false)
Deface::Override.new(
virtual_path: 'spree/user_sessions/new',
name: 'add_socials_to_login_extras',
insert_after: '[data-hook="login_extras"]',
partial: 'spree/shared/social'
)

Deface::Override.new(virtual_path: 'spree/user_registrations/new',
name: 'remove_new_customer_if_sessionomniauth',
replace: 'div#new-customer h6',
partial: 'spree/users/new-customer',
disabled: false)
Deface::Override.new(
virtual_path: 'spree/user_registrations/new',
name: 'remove_new_customer_if_sessionomniauth',
replace: 'div#new-customer h6',
partial: 'spree/users/new-customer'
)

0 comments on commit c0eee5c

Please sign in to comment.