lib/saulabs/reportable.rb in reportable-1.0.3 vs lib/saulabs/reportable.rb in reportable-1.1.0

- old
+ new

@@ -1,7 +1,14 @@ +require 'saulabs/reportable/report' +require 'saulabs/reportable/cumulated_report' + module Saulabs module Reportable + + IS_RAILS3 = defined?(Rails) && Rails::VERSION::MAJOR >= 3 + + require 'saulabs/reportable/railtie' if IS_RAILS3 # Extends the {Saulabs::Reportable::ClassMethods#reportable} method into +base+. # def self.included(base) base.extend ClassMethods