lib/saulabs/reportable.rb in reportable-1.1.2 vs lib/saulabs/reportable.rb in reportable-1.2.0
- old
+ new
@@ -1,18 +1,16 @@
+
require 'saulabs/reportable/report'
require 'saulabs/reportable/cumulated_report'
+require 'saulabs/reportable/railtie'
module Saulabs
module Reportable
# The adapter connects Reportable and Rails.
#
module RailsAdapter
-
- 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