incubator-deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michal Fojtik <mfoj...@redhat.com>
Subject Re: [PATCH] fix the use of camelize method so that the first character is not capped
Date Tue, 25 Oct 2011 12:45:36 GMT

On Oct 24, 2011, at 9:10 PM, email4tong@gmail.com wrote:

> From: Tong Li <litong01@us.ibm.com>
> 
> ---
> server/views/cimi/cloudEntryPoint/index.xml.haml |    2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/server/views/cimi/cloudEntryPoint/index.xml.haml b/server/views/cimi/cloudEntryPoint/index.xml.haml
> index c39a34d..85cdb4a 100644
> --- a/server/views/cimi/cloudEntryPoint/index.xml.haml
> +++ b/server/views/cimi/cloudEntryPoint/index.xml.haml
> @@ -5,5 +5,5 @@
>   %description cloud entry point
>   %created= Time.new.getutc.to_s
>   - @collections.each do |api|
> -    - res_name = api[0].to_s.camelize
> +    - res_name = api[0].to_s.camelize(true)

ACK. Instead of 'true' we can use something like :lowercase_first_letter to be more descriptive
what this 'true' means. 

I will push this.

  -- Michal

>     = "<#{res_name} href=\"#{api[1]}\"/>"
> -- 
> 1.7.4.1
> 

------------------------------------------------------
Michal Fojtik, mfojtik@redhat.com
Deltacloud API: http://deltacloud.org


Mime
View raw message