"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "app/controllers/enumerations_controller.rb" between
redmine-4.1.0.tar.gz and redmine-4.1.1.tar.gz

About: Redmine is a flexible project management and bug-tracking web application (using the Ruby on Rails framework). It supports also project wikis and forums, documents management, and multiple version control systems.

enumerations_controller.rb  (redmine-4.1.0):enumerations_controller.rb  (redmine-4.1.1)
skipping to change at line 112 skipping to change at line 112
end end
def find_enumeration def find_enumeration
@enumeration = Enumeration.find(params[:id]) @enumeration = Enumeration.find(params[:id])
rescue ActiveRecord::RecordNotFound rescue ActiveRecord::RecordNotFound
render_404 render_404
end end
def enumeration_params def enumeration_params
# can't require enumeration on #new action # can't require enumeration on #new action
cf_ids = @enumeration.available_custom_fields.map{|c| c.id.to_s} cf_ids = @enumeration.available_custom_fields.map {|c| c.multiple? ? {c.id.t o_s => []} : c.id.to_s}
params.permit(:enumeration => [:name, :active, :is_default, :position, :cust om_field_values => cf_ids])[:enumeration] params.permit(:enumeration => [:name, :active, :is_default, :position, :cust om_field_values => cf_ids])[:enumeration]
end end
end end
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)