We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c27fa35 commit 8ad2077Copy full SHA for 8ad2077
bin/rubocop
@@ -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
@@ -230,7 +230,7 @@ def log_size
230
231
# Loads log_data field from the database, stores to the attributes hash and returns it
232
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
+ self.log_data = self.class.where(self.class.primary_key => id).pluck(:"#{self.class.table_name}.log_data").first
234
end
235
236
# Nullify log_data column for a single record
0 commit comments