Sha256: 0a5f334169eb79b67d4e354743800d9ca0e2e100d210aec130a43abf32ad68a4

Contents?: true

Size: 299 Bytes

Versions: 5

Compression:

Stored size: 299 Bytes

Contents

module Rarocrud
  class CrudGenerator < Rails::Generators::NamedBase
    source_root File.expand_path('../templates', __FILE__)

    def copy_initializer_file
      @model = Module.const_get(file_name.camelize)
      template 'crud.rb', "app/raro_crud/#{file_name}_crud.rb", @model
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
raro_generator-0.2.1 lib/generators/rarocrud/crud/crud_generator.rb
raro_generator-0.1.1 lib/generators/rarocrud/crud/crud_generator.rb
raro_generator-0.1.0 lib/generators/rarocrud/crud/crud_generator.rb
raro_generator-0.0.4 lib/generators/rarocrud/crud/crud_generator.rb
raro_generator-0.0.3 lib/generators/rarocrud/crud/crud_generator.rb