Commit Graph

26 Commits

Author SHA1 Message Date
Mario Uher 1af010c105 Added .source / .to_source both to Base and DecoratedEnumerableProxy. 2012-01-27 20:40:49 +01:00
Jeff Casimir d154059572 Reworked handling of options/context and resolved double-decoration 2012-01-16 21:22:59 -05:00
Jeff Casimir 81781988fa Adding support for automatic decoration of find_by_ methods 2012-01-16 20:27:48 -05:00
Steve Klabnik 5c74b97b3b Merge pull request #85 from michaelfairley/decorate_associations
Automatically decorate associations with decorates_association
2012-01-05 10:10:06 -08:00
Steve Klabnik 0fe648c305 Merge pull request #110 from tmaier/issue-8
Refactor #kind_of? specs for Draper::Base and alias :is_a? :kind_of?
2012-01-05 10:08:37 -08:00
Michael Fairley 22461fd7c1 Add with option to decorates_association to allow the decoration to be decorated by a specific association 2012-01-05 09:21:32 -08:00
Michael Fairley d10365551c Add decorates_associations to decorate multiple associations 2012-01-05 09:21:32 -08:00
Michael Fairley 1580baa287 Automatically decorate associations with decorates_association 2012-01-05 09:20:07 -08:00
Tobias Maier 66e1d83268 Remove obsolete/duplicate code 2011-12-07 17:29:48 +01:00
Tobias Maier 7ac940f226 Overwrite #kind_of? and #is_a? in Draper::Base 2011-12-07 17:08:23 +01:00
Tobias Maier db7f7f843e Overwrite #kind_of? and #is_a? 2011-12-07 16:31:39 +01:00
Jeff Casimir f42f670812 Use @options instead of older @context 2011-11-30 11:37:59 -05:00
Jeff Casimir 524fc97bdb Merge pull request #86 from pivotalhalogen/master
Fixing index-based access to decorated collections
2011-11-30 08:27:14 -08:00
Jeff Casimir 2ccff3883f Merge pull request #80 from jfelchner/infer-decorators
Infer decorators and generalize with an options hash
2011-11-30 08:22:39 -08:00
Jeff Casimir 900d92a3f4 Merge pull request #79 from jfelchner/master
Generalize to pass an options hash to decorators
2011-11-30 08:20:54 -08:00
Alexandre Angelim ebe30511b7 Refactoring #method_missing to define a previously missing method in the Decorator when calling it for the first time. 2011-11-29 17:29:11 -02:00
Albert Peng & JR Boyens 340a5e6f79 Allow index access into enumerable proxy 2011-11-23 15:03:32 -08:00
Jeff Felchner 404f9d9044 Allow decorators to be inferred (Take 3) 2011-11-09 21:31:48 -06:00
Jeff Felchner 03910877d0 Generalize to pass an options hash to decorators 2011-11-09 19:02:23 -06:00
Jeff Casimir 4d1cef42b8 Merge pull request #71 from ayamomiji/namespaced-model
Namespaced model support
2011-11-01 14:01:07 -07:00
Alexander Presber ac1f308398 make decorators be kind_of their models class, so that cancan rules
apply to them
2011-11-01 20:57:46 +01:00
ayaya 4ef3d2b7cd add namespaced model support 2011-11-01 01:58:37 +08:00
Jeff Casimir 0893f1f813 Implementing #first and #last methods on decorators 2011-10-28 21:02:36 -04:00
Jeff Casimir 3670ef76ee Wrap the .all method to return a DecoratedEnumerableProxy 2011-10-28 20:38:43 -04:00
Jeff Casimir 173c705422 Refactoring spec organization 2011-10-28 20:22:06 -04:00
Justin Ko c1ff7a4f1a Keep lib spec files in draper directory. Remove unneeded require's. 2011-10-24 11:52:28 -06:00