Skip to content

Commit

Permalink
Fix for string arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
Doug Youch committed May 27, 2010
1 parent 0b39100 commit 17ecaca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/models/user_segment/operation_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ def method_missing(arg, *args)
arg = arg.to_s
if arg =~ /^argument(\d+)$/
val = self.arguments[$1.to_i]
val.strftime('%m/%d/%Y %H:%M:%S') if val.is_a?(Time)
val = val.strftime('%m/%d/%Y %H:%M:%S') if val.is_a?(Time)
val
elsif arg =~ /^argument(\d+)=$/
self.arguments[$1.to_i] = self.convert_to(args[0], $1.to_i) if $1.to_i < self.operation_arguments.length
else
Expand Down

0 comments on commit 17ecaca

Please sign in to comment.