aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/helpers/table_builder_helper/custom_links.rb2
-rw-r--r--lib/link.rb2
2 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 a4a8bba4f..f03acac1e 100644
--- a/app/helpers/table_builder_helper/custom_links.rb
+++ b/app/helpers/table_builder_helper/custom_links.rb
@@ -35,7 +35,7 @@ module TableBuilderHelper
end
def method_for_action(action)
- ACTIONS_TO_HTTP_METHODS[action] || :get
+ ACTIONS_TO_HTTP_METHODS[action]
end
def actions_after_policy_check
diff --git a/lib/link.rb b/lib/link.rb
index 911f189c9..c875b85ac 100644
--- a/lib/link.rb
+++ b/lib/link.rb
@@ -1,7 +1,7 @@
class Link
attr_reader :name, :href, :method, :data
- def initialize(name: nil, href:, method: :get, data: nil)
+ def initialize(name: nil, href:, method: nil, data: nil)
@name = name
@href = href
@method = method