app/models/impressionist/impressionable.rb in impressionist-1.4.4 vs app/models/impressionist/impressionable.rb in impressionist-1.4.5

- old
+ new

@@ -10,20 +10,20 @@ def impressionist_counter_cache_options @impressionist_cache_options ||= {} @impressionist_cache_options.reverse_merge!(DEFAULT_CACHE) end - # true or false + # asks impressionable entity whether or not it is counter_caching def impressionist_counter_caching? impressionist_counter_cache_options[:counter_cache] end def counter_caching? ::ActiveSupport::Deprecation.warn("#counter_caching? is deprecated; please use #impressionist_counter_caching? instead") impressionist_counter_caching? end - end + end # end of ClassMethods # ------------------------------------------ # TODO: CLEAN UP, make it HUMAN readable def impressionist_count(options={}) options.reverse_merge!(:filter=>:request_hash, :start_date=>nil, :end_date=>Time.now)