Sha256: 6b710d8bf88814f14e451f89a86324b9e491cacad0ee30acd932655c71ad5ce6

Contents?: true

Size: 420 Bytes

Versions: 9

Compression:

Stored size: 420 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.yml', File.join('app', 'guards', class_path, "#{file_name}_guard.yml")
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ixtlan-guard-0.9.0 lib/generators/guard/controller/controller_generator.rb
ixtlan-guard-0.8.3 lib/generators/guard/controller/controller_generator.rb
ixtlan-guard-0.8.2 lib/generators/guard/controller/controller_generator.rb
ixtlan-guard-0.8.1 lib/generators/guard/controller/controller_generator.rb
ixtlan-guard-0.8.0 lib/generators/guard/controller/controller_generator.rb
ixtlan-guard-0.7.2 lib/generators/guard/controller/controller_generator.rb
ixtlan-guard-0.7.0 lib/generators/guard/controller/controller_generator.rb
ixtlan-guard-0.6.1 lib/generators/guard/controller/controller_generator.rb
ixtlan-guard-0.6.0 lib/generators/guard/controller/controller_generator.rb