section move to other page
This commit is contained in:
@ -65,11 +65,7 @@ module Merged
|
||||
end
|
||||
|
||||
def update
|
||||
@section.allowed_fields.each do |key|
|
||||
if( params.has_key?(key) )
|
||||
@section.update(key, params[key])
|
||||
end
|
||||
end
|
||||
@section.update(params[:section])
|
||||
options = params[:option]
|
||||
@section.option_definitions.each do |option|
|
||||
@section.set_option(option.name, options[option.name])
|
||||
|
Reference in New Issue
Block a user