private Method

PolymorphicRoutes.extract_namespace(record_or_hash_or_array)

There's no documentation for this item.

Source Code

# File action_controller/polymorphic_routes.rb, line 152
def extract_namespace(record_or_hash_or_array)
  returning "" do |namespace|
    if record_or_hash_or_array.is_a?(Array)
      record_or_hash_or_array.delete_if do |record_or_namespace|
        if record_or_namespace.is_a?(String) || record_or_namespace.is_a?(Symbol)
          namespace << "#{record_or_namespace}_"
        end
      end
    end  
  end
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.