Flowdock
method

without_modules

Importance_1
v5.0.0.1 - Show latest stable - 0 notes - Class: API
without_modules(*modules) public

Shortcut helper that returns all the ActionController::API modules except the ones passed as arguments:

class MyAPIBaseController < ActionController::Metal
  ActionController::API.without_modules(:ForceSSL, :UrlFor).each do |left|
    include left
  end
end

This gives better control over what you want to exclude and makes it easier to create an API controller class, instead of listing the modules required manually.

Show source
Register or log in to add new notes.