Skip to content

Commit

Permalink
Rename config to configuration
Browse files Browse the repository at this point in the history
It seems that config didn't actually get the values from RenderAsync.configuration
  • Loading branch information
nikolalsvk committed Dec 13, 2020
1 parent b95cb05 commit c777ac8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/render_async/view_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def container_element_options(options)
def html_options(options)
set_options = options.delete(:html_options) || {}

set_options[:nonce] = config.nonces if set_options[:nonce].nil?
set_options[:nonce] = configuration.nonces if set_options[:nonce].nil?

set_options
end
Expand Down Expand Up @@ -85,10 +85,10 @@ def generate_container_id
def replace_container(options)
return options[:replace_container] unless options[:replace_container].nil?

config.replace_container
configuration.replace_container
end

def config
def configuration
RenderAsync.configuration
end
end
Expand Down

0 comments on commit c777ac8

Please sign in to comment.