app/views/guts/sites/_form.html.erb in guts-2.1.0 vs app/views/guts/sites/_form.html.erb in guts-3.0.0

- old
+ new

@@ -1,7 +1,7 @@ <%= form_for(@site) do |f| %> <div class="small-12 columns"> - <%= f.submit('Save', class: 'success button') if can?(:update, Guts::Site) || can?(:create, Guts::Site) %> + <%= f.submit('Save', class: 'success button') if policy([:guts, :site]).create? || policy([:guts, :site]).update? %> <%= link_to 'Back', sites_path, class: 'secondary hollow button' %> </div> <% if @site.errors.any? %> <div class="small-12 columns">