mirror of
https://github.com/publiclab/mapknitter.git
synced 2025-12-05 16:00:00 +01:00
Refactoring controllers (#546)
* include byebug in test group * refactor feeds controller * refactor tags and maps controllers * refactor images controller * increase maps controller test coverage
This commit is contained in:
@@ -41,4 +41,11 @@ class ApplicationController < ActionController::Base
|
||||
return false
|
||||
end
|
||||
end
|
||||
|
||||
def save_tags(map)
|
||||
return unless params[:tags].present?
|
||||
params[:tags].tr(' ', ',').split(',').each do |tagname|
|
||||
map.add_tag(tagname.strip, current_user)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user