private Method

Base.find_or_create_resource_for_collection(name)

Tries to find a resource for a given collection name; if it fails, then the resource is created

Source Code

# File active_resource/base.rb, line 845
def find_or_create_resource_for_collection(name)
  find_or_create_resource_for(name.to_s.singularize)
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.