def get_parent(args = {})
        if params[:parent_type].blank? || params[:parent_id].blank?
          find_parent(args)
        else
          klass = params[:parent_type].to_s.constantize
          if args.has_key?(:scope)
            klass.find(params[:parent_id], :scope => args[:scope])
          else
            klass.find(params[:parent_id])
          end
        end
      end
def get_parent(args = {})
        if params[:parent_type].blank? || params[:parent_id].blank?
          find_parent(args)
        else
          klass = params[:parent_type].to_s.constantize
          if args.has_key?(:scope)
            klass.find(params[:parent_id], :scope => args[:scope])
          else
            klass.find(params[:parent_id])
          end
        end
      end
Tries to get parent using parent_type and parent_id from the url.
 If that fails and attempt is then made using find_parent
 parameters:
 scope:  Friendly id can require a scope to find the object.  Pass the scope as needed.
 ignore: Names to ignore.  For example if the url is /foo/1/bar?thing_id=1
         you might want to ignore thing_id so pass :thing.