aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers/table_builder_helper
diff options
context:
space:
mode:
authorRobert2017-07-05 11:54:33 +0200
committerRobert2017-07-05 11:59:06 +0200
commite53aa88c442bd0057c4e0ae66e2684d62d3193ed (patch)
tree1ba7c8c082dde92ba215659fde9293e231e7c7df /app/helpers/table_builder_helper
parent841bd65847066e92bf5a4d6de112fed1ada73c1c (diff)
downloadchouette-core-e53aa88c442bd0057c4e0ae66e2684d62d3193ed.tar.bz2
Refs: #3478@1h;
- All permissions tied to `!archived?` - Tests adapted - Policies refactored ? Is `create?` permission bound to `organisation_match?`
Diffstat (limited to 'app/helpers/table_builder_helper')
-rw-r--r--app/helpers/table_builder_helper/custom_links.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/table_builder_helper/custom_links.rb b/app/helpers/table_builder_helper/custom_links.rb
index 68cb24c7a..e3ffb18ac 100644
--- a/app/helpers/table_builder_helper/custom_links.rb
+++ b/app/helpers/table_builder_helper/custom_links.rb
@@ -33,7 +33,7 @@ module TableBuilderHelper
polymorph_url << action
end
- polymorph_url += URL.polymorphic_url_parts(@object)
+ polymorph_url += URL.polymorphic_url_parts(object)
end
def method_for_action(action)
@@ -41,7 +41,7 @@ module TableBuilderHelper
end
def authorized_actions
- @actions.select(&policy.method(:authorizes_action?))
+ actions.select(&policy.method(:authorizes_action?))
end
private