Sha256: a8e6eaead15646074bb5c0298e88d16c3d54c88f9e721092767949831c382fcc
Contents?: true
Size: 774 Bytes
Versions: 2
Compression:
Stored size: 774 Bytes
Contents
# 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 def self.reset_column_information_and_inheritable_attributes_for_all_subclasses # noop end # dependency in actionpack/lib/action_controller/benchmarking.rb def self.connected? false end # dependency in actionpack/lib/action_controller/benchmarking.rb def self.connection return ConnectionStub end end module ConnectionStub def self.reset_runtime 0 end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
instiki-0.10.1 | lib/active_record_stub.rb |
instiki-0.10.2 | lib/active_record_stub.rb |