lib/tableview/helper.rb in tableview-0.2.0 vs lib/tableview/helper.rb in tableview-0.3.0

- old
+ new

@@ -7,11 +7,12 @@ def html? @params[:format] == :html || @params[:format].blank? end - def method_missing(name, args, &blk) - if m = name.match(/^(.+)\?$/) + def method_missing(name, *args, &blk) + if m = name.to_s.match(/^(.+)\?$/) + puts m.inspect, name.inspect @params[:format] == m.captures.first else super end end \ No newline at end of file