Skip to content

Commit

Permalink
calling send will allow us to use delegated attributes and methods no…
Browse files Browse the repository at this point in the history
…t only attributes
  • Loading branch information
vitalie committed Oct 25, 2009
1 parent 7b94876 commit a960b4e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/2dc_jqgrid.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
module Jqgrid

def jqgrid_stylesheets
css = %Q(<link rel="stylesheet" type="text/css" media="screen" href="/jqgrid/jquery-ui-1.7.1.custom.css" />\n)
css << %Q(<link rel="stylesheet" type="text/css" media="screen" href="/jqgrid//ui.jqgrid.css" />)
Expand Down Expand Up @@ -334,8 +333,8 @@ def get_sub_options(editoptions)
options.chop! << %Q/",/
elsif couple[0] == :data # :data => [Category.all, :id, :title])
options << %Q/value:"/
couple[1].first.each do |v|
options << "#{v[couple[1].second]}:#{v[couple[1].third]};"
couple[1].first.each do |obj|
options << "%s:%s;" % [obj.send(couple[1].second), obj.send(couple[1].third)]
end
options.chop! << %Q/",/
else # :size => 30, :rows => 5, :maxlength => 20, ...
Expand Down

0 comments on commit a960b4e

Please sign in to comment.