diff --git a/Gemfile.lock b/Gemfile.lock index d500c3d..771e3e5 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -285,7 +285,7 @@ GEM rspec-mocks (~> 3.12) rspec-support (~> 3.12) rspec-support (3.12.1) - rubocop (1.56.1) + rubocop (1.56.2) base64 (~> 0.1.1) json (~> 2.3) language_server-protocol (>= 3.17.0) @@ -356,7 +356,7 @@ GEM uglifier (4.2.0) execjs (>= 0.3.0, < 3) unicode-display_width (2.4.2) - webmock (3.18.1) + webmock (3.19.1) addressable (>= 2.8.0) crack (>= 0.3.2) hashdiff (>= 0.4.0, < 2.0.0) diff --git a/app/controllers/subscribers_controller.rb b/app/controllers/subscribers_controller.rb index 29a0673..00672cd 100644 --- a/app/controllers/subscribers_controller.rb +++ b/app/controllers/subscribers_controller.rb @@ -21,7 +21,7 @@ class SubscribersController < ApplicationController def index # only show the index page when logged out - return redirect_to(action: :manage) unless @subscriber.nil? + redirect_to(action: :manage) unless @subscriber.nil? end def new @@ -151,7 +151,7 @@ def create # confirm email def confirm @subscriber = Subscriber.find(params[:id]) - return redirect_to action: :manage if @subscriber.is_confirmed? + redirect_to action: :manage if @subscriber.is_confirmed? end # handle link from confirmation email @@ -353,7 +353,7 @@ def disable_subscription private def require_session - return reject("You must be logged in to perform this action.") if session[:subscriber].nil? + reject("You must be logged in to perform this action.") if session[:subscriber].nil? end def fix_email diff --git a/app/models/t403.rb b/app/models/t403.rb index 6119c63..2edb6a0 100644 --- a/app/models/t403.rb +++ b/app/models/t403.rb @@ -6,7 +6,7 @@ class T403 < ApplicationRecord def self.description "Pre-2000 Half-Hourly Weather and Soil" end - + def self.attr_human_readables [ ["date", "Date"],