Skip to content
Commits on Sep 21, 2012
  1. handle namespaced models in spec generators

    committed Sep 21, 2012
    closes #279
Commits on Sep 8, 2012
  1. @steveklabnik

    Merge pull request #271 from cmer/master

    steveklabnik committed Sep 8, 2012
    Added `decorator_class` class and instance methods
Commits on Sep 7, 2012
  1. @cmer
Commits on Aug 31, 2012
  1. @steveklabnik

    Revert "Wrap relation calls and scope calls in decorators"

    steveklabnik committed Aug 31, 2012
    This reverts commit e4595d9.
    
    Fixes #267
    
    Conflicts:
    
    	lib/draper/base.rb
    	lib/draper/decorated_enumerable_proxy.rb
    	spec/draper/base_spec.rb
Commits on Aug 30, 2012
  1. @steveklabnik

    Merge pull request #266 from kuraga/patch-1

    steveklabnik committed Aug 30, 2012
    Error in Readme
  2. @kuraga

    Error in Readme

    kuraga committed Aug 30, 2012
    We have to extend `ApplicationController` but not `Draper::Base`.
  3. @steveklabnik
  4. @steveklabnik

    Merge pull request #265 from stevenbristol/master

    steveklabnik committed Aug 30, 2012
    Allowing enumerable proxys to be decorated
  5. @stevenbristol
Commits on Aug 29, 2012
  1. @stevenbristol
  2. @stevenbristol
  3. @steveklabnik

    Merge pull request #264 from reinh/patch-1

    steveklabnik committed Aug 29, 2012
    Separate ViewContext get/create context behavior
  4. @reinh

    Separate ViewContext get/create context behavior

    reinh committed Aug 29, 2012
    Separating these behaviors eliminates and entire class of bugs like forgetting to re-set the thread local, attempting to re-set the block-local conditionally, and so on. It also makes it more obvious that `self.current` is memoizing.
  5. @steveklabnik
  6. @steveklabnik

    Remove #tap.

    steveklabnik committed Aug 29, 2012
    @reinh points out that this is a bug
  7. @steveklabnik

    Revert "Break reliance on ActionController."

    steveklabnik committed Aug 28, 2012
    This reverts commit b3a2af7.
    
    Basically, we have an issue with ActionMailer::Base. Given this
    code, we end up with
    
    ```
    private method `new' called for ActionMailer::Base:Class
    ```
    
    And That's Bad (tm).
    
    Still that commit should point the way to making it happen somehow.
  8. @steveklabnik

    relaxing ammeter dependency version

    steveklabnik committed Aug 28, 2012
    This means we don't get warnings any more.
  9. @steveklabnik
  10. @steveklabnik

    Break reliance on ActionController.

    steveklabnik committed Aug 28, 2012
    Originally brought up in #249, I didn't know how to fix this.
    
    But now I do.
  11. @steveklabnik

    Totally change test integration.

    steveklabnik committed Aug 28, 2012
    We no longer need to do specific things before tests run. The
    view_context now loads up appropriate things if they don't exist.
    
    I ended up getting rid of two spec files; one tested things that
    were very simple, but since we're not mocking Rails anymore, they're
    much harder to test. The second was the stuff that I removed. :)
Commits on Aug 24, 2012
  1. @steveklabnik

    Merge pull request #259 from indrekj/struct-objects

    steveklabnik committed Aug 24, 2012
    Decorate struct objects correctly
  2. @indrekj

    Decorate struct objects correctly

    indrekj committed Aug 24, 2012
    Struct objects implement #each, but they should not be decorated using
    DecoratedEnumerableProxy.
Commits on Aug 23, 2012
  1. @steveklabnik

    Merge pull request #257 from jhsu/draper-scope-wrap

    steveklabnik committed Aug 22, 2012
    Wrap relation calls and scope calls in decorators
  2. @jhsu

    move fake ActiveRecord::Relation to helper, use #kind_of instead of c…

    jhsu committed Aug 22, 2012
    …omparing to string
Commits on Aug 22, 2012
  1. @jhsu

    fix typo with class name

    jhsu committed Aug 22, 2012
  2. @jhsu

    Wrap relation calls and scope calls in decorators

    jhsu committed Aug 22, 2012
    * wrap model in decorator when scope is called on decorator
    * decorate named scope calls on decorators and enumerable proxies
Commits on Aug 21, 2012
  1. @steveklabnik
  2. @steveklabnik

    bump to 0.17.0

    steveklabnik committed Aug 21, 2012
Commits on Aug 18, 2012
  1. @steveklabnik

    Properly proxy to Enumerable or AR::Finder method.

    steveklabnik committed Aug 18, 2012
    Decorated associations implement Enumerable, but they also should
    emulate the AR::Finder stuff.
    
        @person = PersonDecorator.find(params[:person_id])
        @pet = @person.pets.find(params[:id])
    
    The problem is, pets delegated to Enumerable always, instead of
    to the finder method. This patch makes it delegate to Enumerable if
    a block is given, and Finder if not.
    
    Fixes #214.
Commits on Aug 14, 2012
  1. @steveklabnik

    Merge pull request #253 from doublewide/fix_view_context_priming

    steveklabnik committed Aug 14, 2012
    Fixed view_context priming. Fixes #244, relates to 057ab4e.
  2. @ihoka

    Fixed view_context priming. Fixes #244, relates to 057ab4e.

    ihoka committed Aug 14, 2012
    Fix in 057ab4e resulted in a "NameError: undefined local variable or method `view_context' for Draper::ViewContext:Module".
  3. @steveklabnik

    Merge pull request #252 from iblue/fixed-changelog

    steveklabnik committed Aug 13, 2012
    Fixed changelog
Commits on Aug 13, 2012
  1. @iblue
  2. @iblue

    Fix commit sha1 in changelog

    iblue committed Aug 14, 2012
Commits on Aug 12, 2012
  1. @steveklabnik

    Merge pull request #251 from WizardOfOgz/feature-denies-all

    steveklabnik committed Aug 11, 2012
    Add denies_all feature
Something went wrong with that request. Please try again.