Skip to content

Commit

Permalink
Merge branch 'master' into feat-addd-custom-themes
Browse files Browse the repository at this point in the history
  • Loading branch information
Lewis Youl committed Mar 21, 2021
2 parents 9623507 + bc1007e commit ed51e40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/modals/snippets_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def new
def edit
@languages = Language.order(name: :asc)
@folders = current_user.folders
@folder = current_user.snippet_folders.find_by(snippet_id: params[:id]).folder
@folder = current_user.snippet_folders.find_by(snippet_id: @snippet.id).folder
end

def move
Expand Down
1 change: 1 addition & 0 deletions app/controllers/registrations_controller.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
class RegistrationsController < Devise::RegistrationsController
layout 'basic'
layout 'application', only: :edit

def new
@user = User.new
Expand Down

0 comments on commit ed51e40

Please sign in to comment.