1
0
Fork 0
mirror of https://github.com/drapergem/draper synced 2023-03-27 23:21:17 -04:00
Commit graph

20 commits

Author SHA1 Message Date
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
67b8bc9bed Implementing application-wide 'decorate' view helper 2011-10-28 22:24:55 -04:00
Jeff Casimir
77a6510b6e Alias Model.decorator to Model.decorate 2011-10-28 21:14:02 -04: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
Tim Assmann
aad32faa3d added support to decorate a ActiveRecord collection
ActiveRecordCollection.decorate returns a DecoratorEnumerableProxy
2011-10-28 14:07:03 +02:00
Justin Ko
c1ff7a4f1a Keep lib spec files in draper directory. Remove unneeded require's. 2011-10-24 11:52:28 -06:00
Eduard Tsech
16f69ee07c Ability to pass block to decorator method 2011-09-18 19:10:28 +02:00
Paul Elliott
0711dc1413 Add decorator method to decorated model 2011-08-07 22:07:40 -04:00