mirror of
https://github.com/discourse/discourse.git
synced 2024-12-02 13:39:36 -06:00
1be01f8dd4
Minor fixes to add Rails 6 support to Discourse, we now will boot with RAILS_MASTER=1, all specs pass Only one tiny deprecation left Largest change was the way ActiveModel:Errors changed interface a bit but there is a simple backwards compat way of working it
10 lines
249 B
Ruby
10 lines
249 B
Ruby
# this is a quick backport of a new method introduced in Rails 6
|
|
# to be removed after we upgrade to Rails 6
|
|
if ! defined? ActionView::Base.with_view_paths
|
|
class ActionView::Base
|
|
class << self
|
|
alias with_view_paths new
|
|
end
|
|
end
|
|
end
|