Sha256: a2fdb46747f1d301bbe7a58543ee4c5f295f5939dababf2ef8409a19a64b21dd

Contents?: true

Size: 442 Bytes

Versions: 12

Compression:

Stored size: 442 Bytes

Contents

require_relative 'application_controller'
require_relative '../views/<%= object.name %>'

module <%= object.app_name %>

  class <%= object.name_as_class %>Controller < <%= object.app_name -%>::ApplicationController

    controller_name :<%= object.name %>

    def initialize
      <%= object.app_name %>::<%= object.name_as_class %>View.render(*args)
    end

    private

    def args
    end

    def object
      nil
    end

  end

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
vedeu-0.4.61 lib/vedeu/cli/generator/templates/application/app/controllers/name.erb
vedeu-0.4.60 lib/vedeu/cli/generator/templates/application/app/controllers/name.erb
vedeu-0.4.59 lib/vedeu/cli/generator/templates/application/app/controllers/name.erb
vedeu-0.4.58 lib/vedeu/cli/generator/templates/application/app/controllers/name.erb
vedeu-0.4.57 lib/vedeu/cli/generator/templates/application/app/controllers/name.erb
vedeu-0.4.56 lib/vedeu/cli/generator/templates/application/app/controllers/name.erb
vedeu-0.4.55 lib/vedeu/cli/generator/templates/application/app/controllers/name.erb
vedeu-0.4.54 lib/vedeu/cli/generator/templates/application/app/controllers/name.erb
vedeu-0.4.53 lib/vedeu/cli/generator/templates/application/app/controllers/name.erb
vedeu-0.4.52 lib/vedeu/cli/generator/templates/application/app/controllers/name.erb
vedeu-0.4.51 lib/vedeu/cli/generator/templates/application/app/controllers/name.erb
vedeu-0.4.50 lib/vedeu/cli/generator/templates/application/app/controllers/name.erb