moves wysiwyg sanitizer to lib [#71]

This commit is contained in:
rgarcia
2015-07-31 18:51:20 +02:00
parent e277959274
commit 90720457bd
3 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -7,4 +7,4 @@ class WYSIWYGSanitizer
ActionController::Base.helpers.sanitize(html, tags: ALLOWED_TAGS, attributes: ALLOWED_ATTRIBUTES)
end
end
end