Browse files

Goodbye by_star.rb.bak

  • Loading branch information...
1 parent f48fe87 commit 824c08199dd319f20aa8d60ac8e38f92d3244df7 @radar committed Feb 20, 2012
Showing with 0 additions and 43 deletions.
  1. +0 −43 lib/by_star.rb.bak
View
43 lib/by_star.rb.bak
@@ -1,43 +0,0 @@
-require 'chronic'
-
-require 'by_star/shared'
-require 'by_star/range_calculations'
-require 'by_star/time_ext'
-require 'by_star/vanilla'
-require 'by_star/neighbours'
-
-require 'by_star/calculations/count'
-require 'by_star/calculations/sum'
-
-require 'by_star/calculations'
-
-module ByStar
-
- def self.included(base)
- base.extend ClassMethods
- base.send(:include, InstanceMethods)
- base.class_eval do
- def self.by_star_field(value=nil)
- @by_star_field ||= value
- @by_star_field || "#{self.table_name}.created_at"
- end
- end
- end
-
- module ClassMethods
- include RangeCalculations
- include Shared
- include Vanilla
- include Calculations
- end
-
- module InstanceMethods
- include Neighbours
- end
-
- class ParseError < Exception; end
- class MonthNotFound < Exception; end
-end
-
-ActiveRecord::Base.send :include, ByStar
-ActiveRecord::Relation.send :include, ByStar if ActiveRecord.const_defined?("Relation")

0 comments on commit 824c081

Please sign in to comment.