Sha256: 20310fc68f8de07f7a3ccec5be8da5c1f42c5247631a5ef2e9766e15aa4edd45

Contents?: true

Size: 309 Bytes

Versions: 8

Compression:

Stored size: 309 Bytes

Contents

class RioResourceGenerator < Rails::Generator::NamedBase
  def manifest
    record do |m|
      m.dependency "resource", [name] + @args
      m.dependency "rio_model", [name] + @args
      
      m.template "controller.rb", "app/controllers/#{file_name}s_controller.rb", :collision => :force
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
riojs-0.0.7 generators/rio_resource/rio_resource_generator.rb
riojs-0.0.6 generators/rio_resource/rio_resource_generator.rb
riojs-0.0.5 generators/rio_resource/rio_resource_generator.rb
riojs-0.0.4 generators/rio_resource/rio_resource_generator.rb
riojs-0.0.3 generators/rio_resource/rio_resource_generator.rb
riojs-0.0.2 generators/rio_resource/rio_resource_generator.rb
riojs-0.0.1 generators/rio_resource/rio_resource_generator.rb
riojs-0.0.0 generators/rio_resource/rio_resource_generator.rb