Sha256: 7376a9fc3f3573d49f7d466834747abcdf65571f9eb6db2a107192532ce38a22

Contents?: true

Size: 364 Bytes

Versions: 15

Compression:

Stored size: 364 Bytes

Contents

<% if namespaced? -%>
require_dependency "<%= namespaced_path %>/application_controller"

<% end -%>
<% module_namespacing do -%>
class <%= class_name %>Controller < ::<%= file_name.camelize %>Controller
  include Motorhead::Controller

<% actions.each do |action| -%>
  def <%= action %>
  end
<%= "\n" unless action == actions.last -%>
<% end -%>
end
<% end -%>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
motorhead-0.5.0 lib/generators/motorhead/templates/controller.rb
motorhead-0.4.1 lib/generators/motorhead/templates/controller.rb
motorhead-0.4.0 lib/generators/motorhead/templates/controller.rb
motorhead-0.3.9 lib/generators/motorhead/templates/controller.rb
motorhead-0.3.8 lib/generators/motorhead/templates/controller.rb
motorhead-0.3.7 lib/generators/motorhead/templates/controller.rb
motorhead-0.3.6 lib/generators/motorhead/templates/controller.rb
motorhead-0.3.5 lib/generators/motorhead/templates/controller.rb
motorhead-0.3.4 lib/generators/motorhead/templates/controller.rb
motorhead-0.3.3 lib/generators/motorhead/templates/controller.rb
motorhead-0.3.2 lib/generators/motorhead/templates/controller.rb
motorhead-0.3.1 lib/generators/motorhead/templates/controller.rb
motorhead-0.3.0 lib/generators/motorhead/templates/controller.rb
motorhead-0.2.0 lib/generators/motorhead/templates/controller.rb
motorhead-0.1.0 lib/generators/motorhead/templates/controller.rb