instance method
resourceful?
Ruby on Rails 3.2.22.5
Since v3.0.20 Last seen in v4.1.16Signature
resourceful?()
Checks whether the resource responds to the current format or not.
Source
# File actionpack/lib/action_controller/metal/responder.rb, line 212
def resourceful?
resource.respond_to?("to_#{format}")
end
Defined in actionpack/lib/action_controller/metal/responder.rb line 212
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Responder