Code Duplication    Length = 4-4 lines in 2 locations

app/controllers/admins_controller.rb 2 locations

@@ 130-133 (lines=4) @@
127
    redirect_to admin_site_settings_path, flash: { success: I18n.t("administrator.flash.settings") }
128
  end
129
130
  def coloring_darken
131
    @settings.update_value("Primary Color Darken", params[:color])
132
    redirect_to admin_site_settings_path, flash: { success: I18n.t("administrator.flash.settings") }
133
  end
134
135
  # POST /admins/room_authentication
136
  def room_authentication
@@ 125-128 (lines=4) @@
122
    redirect_to admin_site_settings_path, flash: { success: I18n.t("administrator.flash.settings") }
123
  end
124
125
  def coloring_lighten
126
    @settings.update_value("Primary Color Lighten", params[:color])
127
    redirect_to admin_site_settings_path, flash: { success: I18n.t("administrator.flash.settings") }
128
  end
129
130
  def coloring_darken
131
    @settings.update_value("Primary Color Darken", params[:color])