docbrown/config/initializers/reverse_markdown.rb
Mac Siri d31e1b0594 Remove Sendbird (#421)
* Remove Sendbird

* Remove more remnant of sendbird

* Remove puts
2018-06-19 17:51:10 -04:00

13 lines
461 B
Ruby

# This eagerload our custom ReverseMarkdown::Converters and allows it to be autoreloaded
# in develpment.
#
# Because files are eagerloaded in production, this fix is only
# applicable in development (and test, when needed)
if Rails.env.development? || Rails.env.test?
Rails.application.config.to_prepare do
Dir.glob(Rails.root.join("app/lib/reverse_markdown/converters/*.rb")).sort.each do |filename|
require_dependency filename
end
end
end