lib/generators/phlex/component/component_generator.rb in phlex-rails-1.2.2 vs lib/generators/phlex/component/component_generator.rb in phlex-rails-2.0.0.beta1
- old
+ new
@@ -3,10 +3,10 @@
module Phlex::Generators
class ComponentGenerator < ::Rails::Generators::NamedBase
source_root File.expand_path("templates", __dir__)
def create_view
- @path = File.join("app/views/components", class_path, "#{file_name}_component.rb")
+ @path = File.join("app/components", class_path, "#{file_name}.rb")
template "component.rb.erb", @path
end
end
end