Skip to content

Commit

Permalink
minor fixes to example
Browse files Browse the repository at this point in the history
  • Loading branch information
bostonaholic committed Aug 29, 2024
1 parent 333fbca commit 3106820
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -270,14 +270,14 @@ SEMIAN_PARAMETERS = {
dynamic: true,
}

class CurrentSemianSubResource < ActiveSupport::Attributes
class CurrentSemianSubResource < ActiveSupport::CurrentAttributes
attribute :name
end

Semian::NetHTTP.semian_configuration = proc do |host, port|
name = "#{host}_#{port}"
if (sub_resource_name = CurrentSemianSubResource.name)
name << "_#{name}"
name << "_#{sub_resource_name}"
end
SEMIAN_PARAMETERS.merge(name: name)
end

0 comments on commit 3106820

Please sign in to comment.