Skip to content

Commit

Permalink
Merge pull request #137 from renderedtext/rename-config
Browse files Browse the repository at this point in the history
Rename config
  • Loading branch information
nikolalsvk authored Dec 13, 2020
2 parents 9167653 + c777ac8 commit ce53b5c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ spec/reports
test/tmp
test/version_tmp
tmp
.DS_Store
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 ce53b5c

Please sign in to comment.