macfanatic / active_admin-state_machine

Provides easy integration between ActiveAdmin and your state machine on resources
MIT License
31 stars 20 forks source link

Fix depreciation warning with latest AA #7

Closed aceunreal closed 9 years ago

aceunreal commented 9 years ago

WIP

When tracking master for ActiveAdmin 1.0.0, a deprecation warning is thrown when starting the app:

WARN -- : DEPRECATION WARNING: Active Admin: using action_item without a name is deprecated! Use action_item(:edit). (called from action_item at /***/.bundle/ruby/2.1.0/bundler/gems/activeadmin-77adc9d56b41/lib/active_admin/dsl.rb:92)

This PR intends to resolve it.

macfanatic commented 9 years ago

HI @aceunreal, thanks for the pull request. I haven't used AA since 0.6, so I appreciate the feedback.

Is this the only deprecation warning, or error you've seen while using this gem? If so I'd love to get your help getting this into the project. We'd probably have to do a conditional so that I can continue to support AA < 1.0, but I can help with that.