Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add route helper for state machine routes #9

Open
itschn opened this issue Jul 6, 2015 · 1 comment
Open

Add route helper for state machine routes #9

itschn opened this issue Jul 6, 2015 · 1 comment

Comments

@itschn
Copy link
Contributor

itschn commented Jul 6, 2015

Example:

      resources :workflows, only: [:show, :index] do
        member do
          Workflow.state_machine.events.map(&:name).each do |event_name|
            patch event_name
          end
        end
      end

should look like:

      resources :workflows, only: [:show, :index] do
        member do
           statemachine_member_actions only: [], except: []
        end
      end
@declarus
Copy link

declarus commented Jul 6, 2015

also integrate state scopable concern

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

No branches or pull requests

2 participants