Sha256: 341e846ee0d09acd5beae572f445196411e72e9309f607a4f77f2e67b0de26a0
Contents?: true
Size: 495 Bytes
Versions: 3
Compression:
Stored size: 495 Bytes
Contents
module Guard class ControllerGenerator < Rails::Generators::NamedBase source_root File.expand_path('../../templates', __FILE__) argument :actions, :type => :array, :default => [], :banner => "action action" # check_class_collision :suffix => "Guard" def create_guard_file template 'guard.rb', File.join('app', 'guards', class_path, "#{file_name}_guard.rb") end def guard_class_name class_name end def aliases end end end
Version data entries
3 entries across 3 versions & 1 rubygems