Sha256: f8e0dc0b33f3e8f81bf3665f0407c5927d2cc75d2fdedff3fc71ceaeabbc96e0

Contents?: true

Size: 420 Bytes

Versions: 6

Compression:

Stored size: 420 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 object
      nil
    end

  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
vedeu-0.4.49 lib/vedeu/cli/generator/templates/application/app/controllers/name.erb
vedeu-0.4.48 lib/vedeu/cli/generator/templates/application/app/controllers/name.erb
vedeu-0.4.47 lib/vedeu/cli/generator/templates/application/app/controllers/name.erb
vedeu-0.4.46 lib/vedeu/cli/generator/templates/application/app/controllers/name.erb
vedeu-0.4.45 lib/vedeu/cli/generator/templates/application/app/controllers/name.erb
vedeu-0.4.44 lib/vedeu/cli/generator/templates/application/app/controllers/name.erb