Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Support for multiparameter attributes (used by datetime_select and time_select) #717

Closed
wants to merge 1 commit into
from
Commits on Aug 12, 2012
  1. Support for multiparameter attributes

    jhawthorn committed Aug 12, 2012
    Multiparameter attributes, like those used with datetime_select and
    time_select are understood, and the parenthesized portion is stripped
    when checking permissions.
    
    For example:
      @ability.can :update, :article, :date
    will allow
      @ability.can? :update, :article, 'date(1i)'
      @ability.can? :update, :article, 'date(2i)'
      @ability.can? :update, :article, 'date(3i)'