We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
regarding https://github.com/ahe/2dc_jqgrid/blob/master/lib/2dc_jqgrid.rb#L41
[tk@Na14-38 apollo]$ cat 1.rb options = { :rows_per_page => 10, :search => true, }
options.inject({}) do |options, (key, value)| options[key] = value.to_s options end p options [tk@Na14-38 apollo]$
[tk@Na14-38 apollo]$ rvm use 1.9.2 Using /home/tk/.rvm/gems/ruby-1.9.2-p290
[tk@Na14-38 apollo]$ ruby -v 1.rb ruby 1.9.2p290 (2011-07-09 revision 32553) [i686-linux] 1.rb:15: warning: shadowing outer local variable - options #<== warning !! {:rows_per_page=>10, :search=>true} #<== not worked!!
[tk@Na14-38 apollo]$ rvm use system Now using system ruby.
[tk@Na14-38 apollo]$ ruby -v 1.rb ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-linux] {:rows_per_page=>"10", :search=>"true"}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
regarding https://github.com/ahe/2dc_jqgrid/blob/master/lib/2dc_jqgrid.rb#L41
[tk@Na14-38 apollo]$ cat 1.rb
options =
{
:rows_per_page => 10,
:search => true,
}
Stringify options values
options.inject({}) do |options, (key, value)|
options[key] = value.to_s
options
end
p options
[tk@Na14-38 apollo]$
[tk@Na14-38 apollo]$ rvm use 1.9.2
Using /home/tk/.rvm/gems/ruby-1.9.2-p290
[tk@Na14-38 apollo]$ ruby -v 1.rb
ruby 1.9.2p290 (2011-07-09 revision 32553) [i686-linux]
1.rb:15: warning: shadowing outer local variable - options #<== warning !!
{:rows_per_page=>10, :search=>true} #<== not worked!!
[tk@Na14-38 apollo]$ rvm use system
Now using system ruby.
[tk@Na14-38 apollo]$ ruby -v 1.rb
ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-linux]
{:rows_per_page=>"10", :search=>"true"}
The text was updated successfully, but these errors were encountered: