Skip to content

Commit

Permalink
fix duplicate controllers in manifest on update
Browse files Browse the repository at this point in the history
  • Loading branch information
nachiket87 committed Nov 7, 2023
1 parent 32c652e commit 9aa2429
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/stimulus/manifest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ module Stimulus::Manifest
extend self

def generate_from(controllers_path)
extract_controllers_from(controllers_path).collect do |controller_path|
manifest = extract_controllers_from(controllers_path).collect do |controller_path|
import_and_register_controller(controllers_path, controller_path)
end

manifest.uniq
end

def import_and_register_controller(controllers_path, controller_path)
Expand Down

0 comments on commit 9aa2429

Please sign in to comment.