Controller level #alias_action? #755

Open
s12chung opened this Issue Oct 4, 2012 · 2 comments

Projects

None yet

2 participants

@s12chung

any thoughts of having this:

class ReportsController < ApplicationController
  alias_action :magical, :some_action, to: :read
   ...
end

being equivalent to:

class ReportsController < ApplicationController
  skip_authorize_resource only: [:magical, :some_action]
  before_filter only: [:magical, :some_action] do
    authorize! :read, @report || Report
  end
   ...
end

thoughts? i tried doing it myself and failed =(

@xhoy

Dear submitter, Since cancan/raynB hasn't been active for more than 6 months and no body else then ryam himself has commit permissions the cancan project is on a stand still.
Since cancan has several issues including missing support for rails 4 cancan is moving forward to cancancan. More details on: #994

If your feel that your pull request or bug is still applicable (and hasn't been merged in to cancan) it would be really appreciated if you would resubmit it to cancancan (https://github.com/cancancommunity/cancancan)

We hope to see you on the other side!

@xhoy

Dear submitter, Since cancan/raynB hasn't been active for more than 6 months and no body else then ryam himself has commit permissions the cancan project is on a stand still.
Since cancan has several issues including missing support for rails 4 cancan is moving forward to cancancan. More details on: #994

If your feel that your pull request or bug is still applicable (and hasn't been merged in to cancan) it would be really appreciated if you would resubmit it to cancancan (https://github.com/cancancommunity/cancancan)

We hope to see you on the other side!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment