acesuares / inline_forms

Inline Forms
MIT License
24 stars 15 forks source link

Showing the versions list only to users with the ability list_versions #40

Closed ortegacmanuel closed 6 years ago

ortegacmanuel commented 6 years ago

Once this is merge, in the main app in the ability.rb file we could decide with users are able to list versions.

can :list_versions, :words

A manage_versions ability is the combination of list_versions and revert, in some situation with could make something like this

alias_action(:list_versions, :revert, to: :manage_versions)