Class: Vue::StoreGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Vue::StoreGenerator
- Defined in:
- lib/vue/generators/vue/store/store_generator.rb
Instance Method Summary collapse
Instance Method Details
#generate_store ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/vue/generators/vue/store/store_generator.rb', line 5 def generate_store [ 'Store', 'actions', 'getters', 'mutations', 'state' ].each do |template| template "#{template}.template", Rails.root.join("app", "javascript", "stores", *path, "#{template}.js") end end |