File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -123,9 +123,9 @@ def autosave
123
123
if @article . save
124
124
flash [ :success ] = I18n . t ( "admin.articles.autosave.success" )
125
125
@must_update_calendar =
126
- ( params [ :article ] [ :published_at ] and
127
- params [ :article ] [ :published_at ] . to_time . to_i < Time . zone . now . to_time . to_i and
128
- @article . parent_id . nil? )
126
+ params [ :article ] [ :published_at ] and
127
+ params [ :article ] [ :published_at ] . to_time . to_i < Time . zone . now . to_time . to_i and
128
+ @article . parent_id . nil?
129
129
respond_to do |format |
130
130
format . js
131
131
end
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ def preview
32
32
33
33
def recaptcha_ok_for? ( comment )
34
34
use_recaptcha = comment . blog . use_recaptcha
35
- ( ( use_recaptcha && verify_recaptcha ( model : comment ) ) || !use_recaptcha )
35
+ ( use_recaptcha && verify_recaptcha ( model : comment ) ) || !use_recaptcha
36
36
end
37
37
38
38
def new_comment_defaults
Original file line number Diff line number Diff line change @@ -198,7 +198,7 @@ def show_meta_keyword
198
198
end
199
199
200
200
def stop_index_robots? ( blog )
201
- stop = ( params [ :year ] . present? || params [ :page ] . present? )
201
+ stop = params [ :year ] . present? || params [ :page ] . present?
202
202
stop = blog . unindex_tags if controller_name == "tags"
203
203
stop = blog . unindex_categories if controller_name == "categories"
204
204
stop
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ Gem::Specification.new do |s|
57
57
s . add_development_dependency "pry" , "~> 0.14.2"
58
58
s . add_development_dependency "rails-controller-testing" , "~> 1.0.1"
59
59
s . add_development_dependency "rspec-rails" , "~> 6.0"
60
- s . add_development_dependency "rubocop" , "~> 1.57.1 "
60
+ s . add_development_dependency "rubocop" , "~> 1.59.0 "
61
61
s . add_development_dependency "rubocop-capybara" , "~> 2.19.0"
62
62
s . add_development_dependency "rubocop-factory_bot" , "~> 2.24.0"
63
63
s . add_development_dependency "rubocop-performance" , "~> 1.19.0"
You can’t perform that action at this time.
0 commit comments