Class: StorybookRails::StoriesGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/generators/storybook_rails/stories_generator.rb

Instance Method Summary collapse

Instance Method Details

#generate_stories_filesObject



11
12
13
14
# File 'lib/generators/storybook_rails/stories_generator.rb', line 11

def generate_stories_files
  template "stories.rb", File.join(stories_path.to_s, "#{file_path}_stories.rb")
  template "stories.html.erb", File.join(stories_path.to_s, "#{file_path}_stories.html.erb")
end