Skip to content

Commit

Permalink
fix: Reference to view_folder in templates
Browse files Browse the repository at this point in the history
  • Loading branch information
jrgns committed Sep 24, 2023
1 parent c12cc23 commit 85ce122
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ditty/templates/controller.rb.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require '<%= folder %>/policies/<%= policy_name.underscore %>'
module <%= namespace %>
class <%= controller_name %> < Ditty::ComponentController
set model_class: <%= model_name %>
set view_folder: '<%= views_folder %>'
set view_folder: Ditty::<%= namespace %>.view_folder

# Add text fields that are searchable here
SEARCHABLE = %i[].freeze
Expand Down

0 comments on commit 85ce122

Please sign in to comment.