Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add ParseError class

  • Loading branch information...
commit 54915fd9fe77dd55ef8d8cfdf90ff7365683e752 1 parent 43bd572
@radar authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/by_star.rb
View
4 lib/by_star.rb
@@ -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} <= ?",
Please sign in to comment.
Something went wrong with that request. Please try again.