Permalink
Browse files

Add ParseError class

  • Loading branch information...
1 parent 43bd572 commit 54915fd9fe77dd55ef8d8cfdf90ff7365683e752 @radar committed Feb 17, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/by_star.rb
View
@@ -11,6 +11,10 @@ def by_star_field(field=nil)
include ByYear
include ByMonth
+ class ParseError < StandardError
+
+ end
+
def between(start, finish, options={})
field = options[:field] || by_star_field
scope = where("#{field} >= ? AND #{field} <= ?",

0 comments on commit 54915fd

Please sign in to comment.