Sha256: 7d47b23bdbf05f79ae732a07e00b87f4ef3643ae793f976ee49cf5fc2235cca7
Contents?: true
Size: 590 Bytes
Versions: 5
Compression:
Stored size: 590 Bytes
Contents
# inspired by devise and forem require 'rails/generators' module Rapidfire module Generators class ViewsGenerator < Rails::Generators::Base source_root File.expand_path('../../../../app/views/rapidfire', __FILE__) desc 'Copies default Rapidfire views to your application.' def copy_views view_directory :attempts view_directory :answers view_directory :surveys view_directory :questions end protected def view_directory(name) directory name.to_s, "app/views/rapidfire/#{name}" end end end end
Version data entries
5 entries across 5 versions & 1 rubygems