Skip to content

Commit

Permalink
Merge pull request #298 from Shopify/fix_required_arguments_disable_p…
Browse files Browse the repository at this point in the history
…refix_check

Remove required argument on prefix in disable_prefix_check
  • Loading branch information
Matt Scriven committed Aug 19, 2016
2 parents 75afd21 + bf30a21 commit 27c896f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/active_resource/disable_prefix_check.rb
Expand Up @@ -12,7 +12,7 @@ def conditional_prefix(resource, flexible = false)

init_prefix_explicit resource_type, resource_id

define_singleton_method :prefix do |options|
define_singleton_method :prefix do |options = {}|
resource_type = options[resource] if flexible

options[resource_id].nil? ? "/admin/" : "/admin/#{resource_type}/#{options[resource_id]}/"
Expand Down

0 comments on commit 27c896f

Please sign in to comment.