Skip to content

Commit

Permalink
works
Browse files Browse the repository at this point in the history
  • Loading branch information
kcinay055679 committed Jul 29, 2024
1 parent 09eb388 commit 0516cae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 3 additions & 2 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ def render_error(title_key, body_key, status = :bad_request)
end

def default_url_options
active_locale = I18n.locale == I18n.default_locale ? nil : I18n.locale
{ locale: active_locale }
# active_locale = I18n.locale == I18n.default_locale ? nil : I18n.locale
# { locale: active_locale }
{ locale: I18n.locale }
end
end
2 changes: 0 additions & 2 deletions spec/features/auth_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@
end

it 'Admin can create new skill' do
require 'pry'; binding.pry # rubocop:disable Style/Semicolon,Lint/Debugger

visit skills_path
click_link(href: new_skill_path)
expect(page).to have_field('skill_title')
Expand Down

0 comments on commit 0516cae

Please sign in to comment.