Skip to content

Commit

Permalink
style: upgrade rubocop + bin/rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
palkan committed Jan 9, 2024
1 parent c27fa35 commit 8ad2077
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions bin/rubocop
@@ -0,0 +1,8 @@
#!/bin/bash

cd $(dirname $0)/..

export BUNDLE_GEMFILE=./gemfiles/rubocop.gemfile
bundle check > /dev/null || bundle install

bundle exec rubocop $@
2 changes: 1 addition & 1 deletion lib/logidze/model.rb
Expand Up @@ -230,7 +230,7 @@ def log_size

# Loads log_data field from the database, stores to the attributes hash and returns it
def reload_log_data
self.log_data = self.class.where(self.class.primary_key => id).pluck("#{self.class.table_name}.log_data".to_sym).first
self.log_data = self.class.where(self.class.primary_key => id).pluck(:"#{self.class.table_name}.log_data").first
end

# Nullify log_data column for a single record
Expand Down

0 comments on commit 8ad2077

Please sign in to comment.