Commit Graph

20 Commits

Author SHA1 Message Date
Asif S Kalam 9104ddb7b7 Avoid updating timestamp when updating counter_cache. 2012-07-04 19:53:25 +05:30
Erik Michaels-Ober 63ea4d5663 Merge pull request #36 from challengepost/namespace_impressionable_methods
Namespace impressionable methods
2012-03-21 12:48:51 -07:00
Erik Michaels-Ober 95125f4627 Merge pull request #37 from challengepost/optimize_impressionist_count
Optimize impressionist_count query via arel count with distinct option
2012-03-21 12:47:18 -07:00
Ross Kaffenberger 3a64d4b9ab Add extract controller logic for bypassing impression to bot? method 2012-03-20 17:04:00 -04:00
Ross Kaffenberger fcfacdfdc9 Optimize impressionist_count query via arel count with distinct option 2012-03-19 18:27:41 -04:00
Ross Kaffenberger 51144d4c86 Typo in test 2012-03-19 16:04:43 -04:00
Ross Kaffenberger f59f897d25 Deprecation warning for counter_caching? 2012-03-19 15:56:42 -04:00
Ross Kaffenberger 4c2c09ca69 Rename instance method update_counter_cache => update_impressionist_counter_cache 2012-03-19 14:33:19 -04:00
Ross Kaffenberger 380f49cf62 namespace impressionable model module class methods with 'impressionist_' 2012-03-19 14:31:05 -04:00
Erik Michaels-Ober 5640e3625a Revert "use relative_require so specs work with root Rakefile. TODO: remove"
This reverts commit 58467eba69, which was
causing specs to break on Ruby 1.8.
2012-03-12 18:32:23 -05:00
John McAliley 58467eba69 use relative_require so specs work with root Rakefile. TODO: remove
test_app, mv spec dir under gem root and use dummy app instead
2012-03-11 21:47:31 -04:00
Erik Michaels-Ober 1174647779 Cleanup trailing whitespace
Trailing whitespace isn't friendly to git or vim users.
2012-03-06 14:04:32 -08:00
mio 7a113edeb2 added :dependent => :destroy to is_impressionable 2011-12-13 13:51:23 +01:00
Cory Schires 5386874eca Better tests for counter caching. 2011-10-31 13:19:03 -05:00
Cory Schires 77219d23a5 Added tests for counter cache logic 2011-10-31 12:02:31 -05:00
John McAliley 436492333e add new count method tests 2011-06-03 12:08:41 -04:00
cowboycoded 405d376366 add session_hash to impression model
changed migration template
added upgrade migration template
added unique_impression_count_session to impressionable model
fixed controller_spec
2011-03-06 23:22:39 -05:00
cowboycoded bfb03eeb1c 2 model methods for unique impression account - based on unique ip_address & request_hash 2011-02-17 09:53:01 -05:00
cowboycoded bc8a89278f ruby 1.8 hash syntax for REE users. moving around some tests 2011-02-13 14:18:34 -05:00
cowboycoded 755bd937da first commit 2011-02-03 23:13:41 -05:00