Commit Graph

93 Commits

Author SHA1 Message Date
Antonio C Nalesso Moreira e3d46024a4 fix mongoid and mongo_mapper incompabilities 2013-05-15 23:17:58 +01:00
Antonio C Nalesso Moreira 20e5753925 Impressionist has been tested 2013-05-10 22:33:37 +01:00
johnmcaliley 2782fd8365 bump to 1.3.1 2013-05-07 20:44:12 -04:00
johnmcaliley ef34cf85b8 bump version to 1.3.0 2013-05-06 09:57:13 -04:00
John McAliley 89913641bc Update create_impressions_table.rb
add length for message
2013-05-06 10:30:26 -03:00
Nalesso Moreira 1f25e16c0e Update engine.rb
I've done a bit more of refactoring.
2013-05-06 05:27:10 +02:00
nbit001 14f4097a7b Removed conditional statements and following the DRY concept. 2013-05-05 21:53:04 +01:00
nbit001 aad703c297 Removed conditional statements and following the DRY concept. 2013-05-05 21:47:41 +01:00
John McAliley 23ce2b201e fix spec and use controller_path in mongoid 2013-04-01 22:40:09 -04:00
John McAliley 4a7532f69b Merge pull request #68 from FoboCasteR/fix-issue-60
fix filter for mongoid (Fix #60)
2013-04-01 18:52:46 -07:00
Ty Rauber 39c217a976 Non-restful controllers - controllers without models / resources - would cause impressionist to throw an error on impression create, because it was unable to update the model counter cache due to lack of an impressionable_type and impressionable_id. An if statement around the counter-cache method on impressionable_type and impressionable_id solves this. 2013-03-30 13:00:46 -07:00
FoboCasteR 7431129092 fix filter for mongoid (Fix #60) 2013-03-25 12:00:16 +03:00
John McAliley a3f8dfd373 update to v1.2.0 2013-02-19 15:40:24 -05:00
Michael Elfassy 00e658b28d fix for bug undefined method 'belongs_to' for Impression:Class 2012-10-10 12:03:18 -04:00
JGW Maxwell 8f2c219b97 removed more files 2012-07-11 10:33:35 +01:00
JGW Maxwell 7eae7fb1d0 removed unneeded file 2012-07-11 03:45:55 +01:00
JGW Maxwell 2f8c47a46f fixed for Mongoid 2 support 2012-07-11 03:45:24 +01:00
JGW Maxwell a53363d9f6 Fixed default ActiveRecord setting preventing generator from running. 2012-07-11 02:58:59 +01:00
JGW Maxwell 7ab364c7eb Mongoid functionality working for Mongoid 3.0, haven't got to grips with the tests yet, so will push those in next commit 2012-07-11 02:42:43 +01:00
Adam Ferguson a773a4d366 Add compound index on impressionable_type, message, impressionable_id 2012-04-03 15:23:14 -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
John McAliley 594889a3db bumped patch version 2012-03-15 13:21:21 -04:00
John McAliley b01e40d7b5 use the engine root instead of relative path. the path was not found 2012-03-15 13:16:15 -04:00
Tute Costa 14067b0164 Requiring generic model code. 2012-03-15 09:42:32 -03:00
Erik Michaels-Ober 07024963ab Version bump to 1.1.0 2012-03-14 00:44:19 -06:00
Tute Costa 1c3f809da8 Moves ORM specific code to lib/impressionist/:orm/models. Adds mongo_mapper models.
Adds config/initializers/impression.rb file on install.
2012-03-12 19:54:29 -03:00
Tute Costa ecb95519ec Impressionist generator now accepts --orm option (defaults to active_record). 2012-03-12 18:19:29 -03:00
Tute Costa 6a15cbaf3e Dropping a table automatically drops it's indexes. 2012-03-12 17:30:12 -03:00
Tute Costa d1f1a352d4 Removing useless files/folders. 2012-03-12 17:27:26 -03:00
Erik Michaels-Ober 8ab6fadf0b Replace Jeweler with Bundler::GemHelper.install_tasks
Jeweler is an unnecessary abstraction of the Gem::Specification DSL.
2012-03-06 14:55:02 -08: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
John McAliley a96aebfb64 Change the require so it is not dependent on File.dirname 2011-12-18 15:10:34 -05:00
John McAliley f0d1288b2d change session_hash from text to string 2011-11-30 12:10:27 -05:00
Cory Schires 345f917d4a Use `text` columns rather than `string` in generated migration. 2011-11-27 16:54:33 -06:00
Cory Schires aef6acc583 Move AR include into engine file. 2011-11-04 10:27:13 -05:00
John McAliley ae5ae23e1c Add referrer to impression model.
remove unused features dir.
2011-06-03 11:52:42 -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 68298065fd change PATH variable to IMPRESSIONIST_PATH. PATH used by Rails 2011-02-15 12:08:35 -05:00
cowboycoded 0348a2a9c0 change back to module. causing problems in dev with reopen implementation 2011-02-13 14:16:12 -05:00
cowboycoded 22e83c58ba add indexes to impressions table 2011-02-11 22:23:33 -05:00
cowboycoded ec1b40487d simply reopen ApplicationController instead of using include/extend. As long as the file is not named "application_controller.rb", then it will load. Rails does not load files from engine /app that have the same name as files in container application /app dir 2011-02-04 10:13:27 -05:00
cowboycoded 755bd937da first commit 2011-02-03 23:13:41 -05:00