Changes for dat and time format
Impression bug when some i18n missing in impressionable object JS bug in ad_banner edit title
This commit is contained in:
1 parent
e1bd5d8c8d
commit
4d33c7a56d
24 files changed
+57
-46
No files matched your search
@@ -38,10 +38,11 @@ module Impressionist
|
||||
end
|
||||
|
||||
def update_impressionist_counter_cache
|
||||
cache_options = self.class.impressionist_counter_cache_options
|
||||
column_name = cache_options[:column_name].to_sym
|
||||
count = cache_options[:unique] ? impressionist_count(:filter => :ip_address) : impressionist_count
|
||||
update_attribute(column_name, count)
|
||||
# cache_options = self.class.impressionist_counter_cache_options
|
||||
# column_name = cache_options[:column_name].to_sym
|
||||
# count = cache_options[:unique] ? impressionist_count(:filter => :ip_address) : impressionist_count
|
||||
# update_attribute(column_name, count)
|
||||
update_attribute(column_name, self.send(cache_options[:column_name]) + 1)
|
||||
end
|
||||
|
||||
# OLD METHODS - DEPRECATE IN V0.5
|
||||
|
||||
Reference in new issue
Block a user