Permalink
Browse files

those need to be instance variables since I removed the attr_accessors

  • Loading branch information...
1 parent da4a3ca commit fbc988c9fa54baa37446b3d10d97a81fea89582b @justinfrench committed Dec 31, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/active_time.rb
View
@@ -23,7 +23,7 @@ def initialize(*args)
case args.first
when Fixnum, String
@year, @month, @day, @hour, @min, @sec = *args
- @starting = Time.gm(year, month, day)
+ @starting = Time.gm(@year, @month, @day)
@ending = @starting.send("end_of_#{range}")
when Time
raise(ArgumentError, "both a starting and ending time must be supplied") unless (args[1] && args[1].is_a?(Time))

0 comments on commit fbc988c

Please sign in to comment.