Code Duplication    Length = 4-4 lines in 2 locations

app/controllers/admins_controller.rb 2 locations

@@ 138-141 (lines=4) @@
135
    redirect_to admin_site_settings_path, flash: { success: I18n.t("administrator.flash.settings") }
136
  end
137
138
  def coloring_darken
139
    @settings.update_value("Primary Color Darken", params[:color])
140
    redirect_to admin_site_settings_path, flash: { success: I18n.t("administrator.flash.settings") }
141
  end
142
143
  # POST /admins/room_authentication
144
  def room_authentication
@@ 133-136 (lines=4) @@
130
    redirect_to admin_site_settings_path, flash: { success: I18n.t("administrator.flash.settings") }
131
  end
132
133
  def coloring_lighten
134
    @settings.update_value("Primary Color Lighten", params[:color])
135
    redirect_to admin_site_settings_path, flash: { success: I18n.t("administrator.flash.settings") }
136
  end
137
138
  def coloring_darken
139
    @settings.update_value("Primary Color Darken", params[:color])