Bringing various things inline with the current state of Rails develolpment
This commit is contained in:
parent
0a63789e61
commit
8de7ca3cee
38 changed files with 204 additions and 5484 deletions
23
lib/active_record_stub.rb
Normal file
23
lib/active_record_stub.rb
Normal file
|
@ -0,0 +1,23 @@
|
|||
# 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
|
||||
|
||||
unless defined? ActiveRecord::Base
|
||||
|
||||
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
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue