lib/restfulx.rb in restfulx-1.2.0 vs lib/restfulx.rb in restfulx-1.2.1
- old
+ new
@@ -3,12 +3,12 @@
#
# Loads RestfulX specific rake tasks if appropriate.
module RestfulX
# :stopdoc:
- VERSION = '1.2.0'
- FRAMEWORK_VERSION = '1.2.0'
+ VERSION = '1.2.1'
+ FRAMEWORK_VERSION = '1.2.1'
LIB_DIR = File.join(File.dirname(__FILE__), 'restfulx/')
# :startdoc:
# Returns the version string for the library.
#
@@ -112,6 +112,10 @@
ActionController::Base.send :include, RxController
ActionController::Base.send :prepend_before_filter, :extract_metadata_from_params
# temporarily disable forgery protection site-wise
ActionController::Base.allow_forgery_protection = false
+elsif defined?(DataMapper)
+ require RestfulX::LIB_DIR + 'datamapper_foo'
+elsif defined?(ActiveRecord::Base)
+ require RestfulX::LIB_DIR + 'active_foo'
end
\ No newline at end of file