lib/vue/generators/vue/mixin/mixin_generator.rb in vue-generators-0.1.0 vs lib/vue/generators/vue/mixin/mixin_generator.rb in vue-generators-0.1.1
- old
+ new
@@ -2,10 +2,10 @@
class MixinGenerator < Rails::Generators::NamedBase
source_root File.expand_path('../templates', __FILE__)
def generate_mixin
- template 'Mixin.template', Rails.root.join("app", "javascript", "components", *path, "#{mixin_name}.js")
+ template 'Mixin.template', Rails.root.join("app", "javascript", "mixins", *path, "#{mixin_name}.js")
end
private
def mixin_name
file = name.split("/").last