Commit Graph

21 Commits

Author SHA1 Message Date
Michael Fairley d1f2eceb79 Delegate == to the decorated models 2011-09-19 10:44:16 -07:00
Jeff Casimir 4ba89563ec Simplified the specs around pluralized decorated classes 2011-08-27 22:34:33 -05:00
Mel Riffe 3709bf4077 Added a test to demonstrate classify vs. camelize; Updated Draper::Base#decorates to use camelize instead of classify 2011-08-27 00:23:48 -04:00
Jeff Casimir 67feb3acbd Merge pull request #13 from leshill/context
Adding optional context to decoration initialization
2011-08-16 21:06:23 -07:00
Les Hill cad25f7a8d Create decorators with context 2011-08-08 18:01:31 -07:00
Les Hill 7412475891 Refactor spec 2011-08-08 17:57:03 -07:00
Les Hill a0d9c13772 Cleanup 2011-08-08 16:27:43 -07:00
Paul Elliott 0711dc1413 Add decorator method to decorated model 2011-08-07 22:07:40 -04:00
Jeff Casimir 36911776f3 Implementing lazy_helpers and improving test coverage 2011-07-27 23:45:09 -05:00
Jeff Casimir c70045aeac Clean up protections with regards to method_missing in AR circumventing denied methods 2011-07-23 10:15:53 -07:00
Jeff Casimir 605332ce76 Implement automatic finding using .find with integer or string 2011-07-23 09:16:52 -07:00
Jeff Casimir fc8199cdfc Reorganizing specs 2011-07-23 08:49:18 -07:00
Jeff Casimir 577277b6bd Added the ability to automatically do lookups by passing an integer ID to .new 2011-07-23 08:39:48 -07:00
Jeff Casimir 9e8f1a3a02 Implement forced proxy for to_param 2011-07-23 08:12:26 -07:00
Jeff Casimir cadac79498 Made .model public 2011-07-23 07:48:14 -07:00
Jeff Casimir 2ed64ce56f Refactored tests to work through helper accessor and implemented to_model to feed form_for 2011-07-23 06:59:09 -07:00
Jeff Casimir 9b325c999a Stripping down to basic decorations 2011-07-11 18:36:59 -04:00
Jeff Casimir 6a6f7e68da Pulling larger example classes out into spec/samples 2011-07-10 21:46:30 -04:00
Jeff Casimir 235dfd5933 Fixed the wrapping of subject methods that use blocks 2011-07-01 15:50:57 -04:00
Jeff Casimir 2c57049832 Change excludes to denies 2011-06-30 18:45:37 -04:00
Jeff Casimir a3804b0662 Bring over generator structure from rails_decorators 2011-06-30 18:19:48 -04:00