Sha256: 302bd5887cccb53fc1691284d33c21d446f6e60b0acc2f12bd6201d694ce4b3f
Contents?: true
Size: 574 Bytes
Versions: 9
Compression:
Stored size: 574 Bytes
Contents
require 'rails/generators/resource_helpers' module Guard class ScaffoldGenerator < Rails::Generators::NamedBase include Rails::Generators::ResourceHelpers source_root File.expand_path('../../templates', __FILE__) # check_class_collision :suffix => "Guard" def create_guard_files template 'guard.yml', File.join('app', 'guards', class_path, "#{plural_file_name}_guard.yml") end #TODO should be coming from the actual generator def actions ['index', 'show', 'new', 'create', 'edit', 'update', 'destroy'] end end end
Version data entries
9 entries across 9 versions & 1 rubygems