moves wysiwyg sanitizer to lib [#71]
This commit is contained in:
@@ -25,7 +25,7 @@ module Participacion
|
||||
# Do not swallow errors in after_commit/after_rollback callbacks.
|
||||
config.active_record.raise_in_transactional_callbacks = true
|
||||
|
||||
# Add services to the autoload path
|
||||
config.autoload_paths += Dir[Rails.root.join('app', 'services')]
|
||||
# Add lib to the autoload path
|
||||
config.autoload_paths << Rails.root.join('lib')
|
||||
end
|
||||
end
|
||||
|
||||
@@ -7,4 +7,4 @@ class WYSIWYGSanitizer
|
||||
ActionController::Base.helpers.sanitize(html, tags: ALLOWED_TAGS, attributes: ALLOWED_ATTRIBUTES)
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user