app/controllers/washout_builder/washout_builder_controller.rb
# checking if a controller is a soap service
# @see #map_controllers
# @see #controller_naming
#
# @param [String] controller The controller that is used to check if it is soap service
#
# @return [Boolean] Returns true if we find a route that can generate wsdl and the name of the route matches the name of the controller
#
# @api private
checking if a controller is a soap service
checking if a controller is a soap service
def controller_is_a_service?(controller)
      map_controllers('detect') do |hash|
        if hash[:route].present? && hash[:route].respond_to?(:defaults)
          controller_naming(hash[:route].defaults[:controller]) == controller_naming(controller)
        end
      end
    end
def controller_is_a_service? ( controller ) map_controllers ( 'detect' ) do | hash | if hash [ :route ] . present? && hash [ :route ] . respond_to? ( :defaults ) controller_naming ( hash [ :route ] . defaults [ :controller ] ) == controller_naming ( controller ) end end end
checking if a controller is a soap service
checking if a controller is a soap service
Returns true if we find a route that can generate wsdl and the name of the route matches the name of the controller
Returns true if we find a route that can generate wsdl and the name of the route matches the name of the controller
Boolean
controller
<not_specific>
<not_specific>
controller The controller that is used to check if it is soap service
controller The controller that is used to check if it is soap service
see
None
see
None
api
None