Permalink
Commits on Oct 24, 2012
  1. ignoring test db

    steveklabnik committed Oct 24, 2012
Commits on Oct 21, 2012
  1. Merge pull request #314 from ao140505/handle-empty-collections-better

    fix bug: unitialized constant NilClassDecorator no need to decorate an empty array anyways
    steveklabnik committed Oct 21, 2012
Commits on Oct 20, 2012
  1. fix bug: unitialized constant NilClassDecorator no need to decorate a…

    …n empty array anyways
    aokolish committed Oct 20, 2012
Commits on Oct 19, 2012
  1. Updating with latest master.

    Needed to turn Base -> Decorator, and also add
    the test db back to the repo so that travis will
    have a copy.
    steveklabnik committed Oct 19, 2012
  2. Cleaned up Rakefile.

    We can't even use RCov because we don't support 1.8.
    steveklabnik committed Oct 19, 2012
  3. Added cucumber task and ci task

    Now you can `rake cucumber` to run the cukes, and
    `rake ci` to run the rspec tests and then the cukes.
    steveklabnik committed Oct 19, 2012
  4. Added first integration test

    This test tests the following Draper features:
    
    1) finders
    2) decorates
    3) using a decorated method
    
    It also is the first test that verifies that the whole Cucumber setup
    actually works properly.
    steveklabnik committed Oct 19, 2012
  5. Adding cucumber stuff for integration testing.

    I've embedded a little Rails app so that we can write cuke tests and
    make sure that stuff doesn't break. Woo!
    
    This was generated by making a rails engine, then copying just the
    app over.
    
    Thanks @nashby for fixing my stupid bug with sqlite3; it had to be
    added as a development dependency. ❤️
    steveklabnik committed Oct 15, 2012
Commits on Oct 16, 2012
  1. Merge pull request #312 from jpfuentes2/extract_helpers_delegation_in…

    …to_module
    
    move #helpers (delegates to HelperProxy) to module
    steveklabnik committed Oct 16, 2012
  2. move #helpers (delegates to HelperProxy) to module

    Since the #helpers interface lives in a module, we
    can now re-use the HelperProxy logic in custom
    "Presenter" classes which do not inherit from
    Draper::Decorator. These custom classes may either
    wrap 1..N different collections of AR models
    and/or POROs.
    jpfuentes2 committed Oct 16, 2012
Commits on Oct 15, 2012
  1. Merge pull request #310 from haines/helper_proxy

    Extract helper proxy
    steveklabnik committed Oct 15, 2012
Commits on Oct 14, 2012
  1. Extract helper proxy

    haines committed Oct 14, 2012
  2. Merge pull request #309 from cgunther/fix-309

    CollectionDecorator#find with a block proxies to undecorated collection
    steveklabnik committed Oct 14, 2012
Commits on Oct 12, 2012
  1. CollectionDecorator#find with block proxies to decorated_collection

    #find with a block should return an instance of the decorated model,
    not the undecorated model
    cgunther committed Oct 12, 2012
  2. Merge pull request #306 from dqminh/master

    Memoize .helpers
    steveklabnik committed Oct 12, 2012
  3. Merge pull request #307 from haines/fix_nonspecs

    Fix specs that don't do anything
    nashby committed Oct 12, 2012
  4. Fix specs that don't do anything

    haines committed Oct 12, 2012
  5. memoize helpers

    this does not instantiate new instance of HelpersWrapper
    every time "#helpers" is accessed
    dqminh committed Oct 12, 2012
  6. Merge pull request #305 from haines/extract_security

    Extract security from Decorator
    steveklabnik committed Oct 12, 2012
  7. Remove 'to to' from docs

    haines committed Oct 12, 2012
  8. Update decorator specs

    haines committed Oct 12, 2012
  9. Fix failing spec

    We don't need to deny `Object` methods or `method_missing` because
    `Decorator` will respond to these itself so
    
    * `Decorator#respond_to?` will hit `super` and return true, as
      expected
    * `Decorator#method_missing` will not be called for these methods,
      so we will never check whether they are denied anyway!
    haines committed Oct 12, 2012
  10. Extract Security class

    haines committed Oct 12, 2012
  11. Merge pull request #304 from haines/travis_link

    Update Travis link in README
    steveklabnik committed Oct 12, 2012
  12. Update Travis link

    haines committed Oct 12, 2012
Commits on Oct 11, 2012
  1. Merge pull request #303 from haines/active_model_support

    Simplify ActiveModelSupport?
    steveklabnik committed Oct 11, 2012
  2. Simplify ActiveModelSupport

    haines committed Oct 11, 2012
  3. Merge pull request #302 from haines/renaming

    Rename model_support_spec to decoratable_spec
    nashby committed Oct 11, 2012
Commits on Oct 10, 2012
  1. Merge pull request #299 from haines/renaming

    Renaming
    steveklabnik committed Oct 10, 2012
Commits on Oct 9, 2012