Sha256: 9b3bf93d6cc84094b96c6b17c6248a0afcbf863eae4063cfd82accc64a31c217

Contents?: true

Size: 436 Bytes

Versions: 4

Compression:

Stored size: 436 Bytes

Contents

% rails_actions = web_ui.actions - web_ui.custom_actions
resources <%= model_name(:symbols) %>, only: <%= rails_actions.map(&:name).map(&:to_sym) %> do
    member do
% web_ui.custom_actions.select(&:member?).each do |action|
      <%= action.method %> '<%= action.name %>'
% end
    end
    collection do
% web_ui.custom_actions.select(&:collection?).each do |action|
      <%= action.method %> '<%= action.name %>'
% end
    end
  end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
katapult-0.5.0 lib/generators/katapult/web_ui/templates/_route.rb
katapult-0.4.1 lib/generators/katapult/web_ui/templates/_route.rb
katapult-0.4.0 lib/generators/katapult/web_ui/templates/_route.rb
katapult-0.3.0 lib/generators/katapult/web_ui/templates/_route.rb