Skip to content

Commit 8ad2077

Browse files
committed
style: upgrade rubocop + bin/rubocop
1 parent c27fa35 commit 8ad2077

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

bin/rubocop

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
cd $(dirname $0)/..
4+
5+
export BUNDLE_GEMFILE=./gemfiles/rubocop.gemfile
6+
bundle check > /dev/null || bundle install
7+
8+
bundle exec rubocop $@

lib/logidze/model.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def log_size
230230

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

236236
# Nullify log_data column for a single record

0 commit comments

Comments
 (0)