Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Aug 31, 2012
  1. @steveklabnik

    Revert "Wrap relation calls and scope calls in decorators"

    steveklabnik authored
    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 authored
    Error in Readme
  2. @kuraga

    Error in Readme

    kuraga authored
    We have to extend `ApplicationController` but not `Draper::Base`.
  3. @steveklabnik
  4. @steveklabnik

    Merge pull request #265 from stevenbristol/master

    steveklabnik authored
    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 authored
    Separate ViewContext get/create context behavior
  4. @reinh

    Separate ViewContext get/create context behavior

    reinh authored
    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 authored
    @reinh points out that this is a bug
  7. @steveklabnik

    Revert "Break reliance on ActionController."

    steveklabnik authored
    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 authored
    This means we don't get warnings any more.
  9. @steveklabnik
  10. @steveklabnik

    Break reliance on ActionController.

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

    Totally change test integration.

    steveklabnik authored
    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 authored
    Decorate struct objects correctly
  2. @indrekj

    Decorate struct objects correctly

    indrekj authored
    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 authored
    Wrap relation calls and scope calls in decorators
  2. @jhsu
Commits on Aug 22, 2012
  1. @jhsu

    fix typo with class name

    jhsu authored
  2. @jhsu

    Wrap relation calls and scope calls in decorators

    jhsu authored
    * 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 authored
Commits on Aug 18, 2012
  1. @steveklabnik

    Properly proxy to Enumerable or AR::Finder method.

    steveklabnik authored
    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 authored
    Fixed view_context priming. Fixes #244, relates to 057ab4e.
  2. @ihoka

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

    ihoka authored
    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 authored
    Fixed changelog
Commits on Aug 13, 2012
  1. @iblue
  2. @iblue

    Fix commit sha1 in changelog

    iblue authored
Commits on Aug 12, 2012
  1. @steveklabnik

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

    steveklabnik authored
    Add denies_all feature
  2. .denies_all implementation

    Andy Ogzewalla authored
  3. Additional specs for denies_all

    Andy Ogzewalla authored
  4. Add specs for denies_all cases

    Andy Ogzewalla authored
Something went wrong with that request. Please try again.