Sha256: 5ff92b562f6045f52790d48c33e7e4ede51085c86532bcf6e25ff24cced0a252
Contents?: true
Size: 550 Bytes
Versions: 3
Compression:
Stored size: 550 Bytes
Contents
<% if namespaced? -%> require_dependency "<%= namespaced_path %>/application_controller" <% end -%> <% module_namespacing do -%> class <%= class_name %>Controller < Lina::ApplicationController <% actions.each do |action| -%> # def <%= action %> define_action :<%= action %>, { name: '<%= action %>', description: '', params: { type: 'object', properties: { } }, return: { } } do # write code here, It's the same as before end <%= "\n" unless action == actions.last -%> <% end -%> end <% end -%>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
lina-0.0.4 | lib/generators/lina/api/templates/controller.rb |
lina-0.0.3 | lib/generators/lina/api/templates/controller.rb |
lina-0.0.2 | lib/generators/lina/api/templates/controller.rb |