2005-01-24 19:52:04 +01:00
|
|
|
# This project uses Railties, which has an external dependency on ActiveRecord
|
|
|
|
# Since ActiveRecord may not be present in Instiki runtime environment, this
|
|
|
|
# file provides a stub replacement for it
|
|
|
|
|
|
|
|
module ActiveRecord
|
|
|
|
class Base
|
|
|
|
|
|
|
|
# dependency in railties/lib/dispatcher.rb
|
2005-04-04 08:48:42 +02:00
|
|
|
def self.reset_column_information_and_inheritable_attributes_for_all_subclasses
|
|
|
|
# noop
|
|
|
|
end
|
2005-01-24 19:52:04 +01:00
|
|
|
|
2005-04-04 08:48:42 +02:00
|
|
|
# dependency in actionpack/lib/action_controller/benchmarking.rb
|
|
|
|
def self.connected?
|
|
|
|
false
|
|
|
|
end
|
2005-01-24 19:52:04 +01:00
|
|
|
|
2005-04-04 08:48:42 +02:00
|
|
|
# dependency in actionpack/lib/action_controller/benchmarking.rb
|
|
|
|
def self.connection
|
|
|
|
return ConnectionStub
|
2005-01-24 19:52:04 +01:00
|
|
|
end
|
2005-04-04 08:48:42 +02:00
|
|
|
|
2005-01-24 19:52:04 +01:00
|
|
|
end
|
|
|
|
|
2005-04-04 08:48:42 +02:00
|
|
|
module ConnectionStub
|
|
|
|
def self.reset_runtime
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|