lib/reform.rb in reform-0.2.7 vs lib/reform.rb in reform-1.0.0
- old
+ new
@@ -1,7 +1,15 @@
+module Reform
+ autoload :Contract, 'reform/contract'
+
+ def self.rails3_0?
+ ::ActiveModel::VERSION::MAJOR == 3 and ::ActiveModel::VERSION::MINOR == 0
+ end
+end
+
require 'reform/form'
require 'reform/form/composition'
require 'reform/form/active_model'
if defined?(Rails) # DISCUSS: is everyone ok with this?
require 'reform/rails'
-end
\ No newline at end of file
+end