Sha256: 227de203e263bf501646a6a2f2957d16fa572eae0b5eeab7db041f98424ac98b

Contents?: true

Size: 366 Bytes

Versions: 1

Compression:

Stored size: 366 Bytes

Contents

require 'rid/generators/named_base'

module Rid::Generators
  class ShowGenerator < NamedBase
    def create_show_function
      template "show.js", "shows/#{model_name}.js"
      template "show.mustache", "lib/templates/#{pluralized_model_name}/show.mustache"
      template "form.mustache", "lib/templates/#{pluralized_model_name}/form.mustache"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rid-0.4.1 lib/rid/generators/show/show_generator.rb