module ActionDispatch::Routing::Mapper::Resources

Public Instance Methods

resources(*resources, &block)
resources_with_commandable(*resources, &block) click to toggle source
# File lib/express_admin/commandable.rb, line 57
def resources_with_commandable(*resources, &block)
  unless @concerns[:commandable]
    concern :commandable, ExpressAdmin::Commandable.new
  end

  resources_without_commandable(*resources) do |resource|
    block.call(resource) unless block.nil?
    concerns :commandable
  end
end
Also aliased as: resources
resources_without_commandable(*resources, &block)
Alias for: resources