Skip to content

Use of if proc #41

@SteveyblamWork

Description

@SteveyblamWork

Hi, This plugin is great. Thanks for the hard work. Is there a way to use the passed in if: proc to determine when the collection actions will be shown? Similar to how it's done with batch actions?

batch_action :do_something, if: proc { @current_scope.scope_method == :something } do |ids|

Many thanks
Stephen

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions