Permalink
Commits on Feb 13, 2012
  1. Add forgotten sample file

    yabawock committed Feb 13, 2012
  2. Allow multiple allows

    yabawock committed Feb 13, 2012
Commits on Feb 10, 2012
  1. Merge pull request #127 from jpfuentes2/master

    Add basic example for decorates_association to Readme
    steveklabnik committed Feb 10, 2012
Commits on Feb 3, 2012
  1. Fixing tutorial link

    jcasimir committed Feb 3, 2012
Commits on Jan 31, 2012
  1. Pull rbx-2.0 from Travis.

    jcasimir committed Jan 31, 2012
  2. Merge pull request #120 from haihappen/master

    Added .source / .to_source both to Base and DecoratedEnumerableProxy. Made options accept both class and class_name.
    jcasimir committed Jan 31, 2012
  3. Merge pull request #117 from ohwillie/dont_cache_decorator_proxy

    Don't cache @decorator_proxy in Draper::ModelSupport::ClassMethods#decorate.
    jcasimir committed Jan 31, 2012
  4. Merge pull request #122 from tooky/no_method_error_fix

    NoMethodError swallowed from inside delegated methods
    jcasimir committed Jan 31, 2012
  5. Ensure NoMethodError propogates correctly.

    When a delegated method calls a non-existant method the correct
    NoMethodError should be called. If the NoMethodError is swallowed by
    the decorator it can cause problems with BDD workflow.
    tooky committed Jan 31, 2012
  6. Remove trailing whitespace.

    tooky committed Jan 31, 2012
Commits on Jan 27, 2012
  1. Added support for :class_name option to mimic the behavior of ActiveR…

    …ecord and help to unify code. :class / :class_name can now be strings too!
    ream88 committed Jan 27, 2012
Commits on Jan 26, 2012
  1. Don't cache @decorator_proxy in Draper::ModelSupport::ClassMethods#de…

    …corate.
    
    Prior to this commit, calling
    Draper::ModelSupport::ClassMethods#decorate had the unfortunately side
    effect of setting @decorator_proxy once and never setting it again at
    the class level. This caused all subsequent calls to decorate on
    ActiveRecord::Base descendant classes and their corresponding
    ActiveRecord::Relations to always return this same
    DecoratedEnumerableProxy, which could result in some very odd behavior,
    e.g. getting a completely different set of decorated models than you
    would have expected.
    
    I've added specs to verify that this no longer occurs.
    Rob Hanlon committed Jan 26, 2012
Commits on Jan 17, 2012
Commits on Jan 16, 2012
  1. Fixing URL error in Readme

    jcasimir committed Jan 16, 2012
  2. Updating dependencies

    jcasimir committed Jan 16, 2012
  3. Version bump

    jcasimir committed Jan 16, 2012
Commits on Jan 10, 2012
  1. Merge pull request #112 from i0rek/master

    Remove backtic from Readme.
    jcasimir committed Jan 10, 2012
  2. Remove backtic.

    i0rek committed Jan 10, 2012
Commits on Jan 7, 2012
  1. Merge pull request #111 from laserlemon/patch-1

    Link build status and add dependency status to README
    steveklabnik committed Jan 7, 2012
Commits on Jan 5, 2012
  1. Only include rspec if we really want it.

    This closes #91.
    steveklabnik committed Jan 5, 2012
  2. Merge pull request #85 from michaelfairley/decorate_associations

    Automatically decorate associations with decorates_association
    steveklabnik committed Jan 5, 2012
  3. Merge pull request #110 from tmaier/issue-8

    Refactor #kind_of? specs for Draper::Base and alias :is_a? :kind_of?
    steveklabnik committed Jan 5, 2012
  4. Merge pull request #95 from tmaier/issue-92

    Overwrite #kind_of? and #is_a? in Draper::DecoratedEnumerableProxy
    steveklabnik committed Jan 5, 2012
  5. Add with option to decorates_association to allow the decoration to b…

    …e decorated by a specific association
    michaelfairley committed Dec 17, 2011