Skip to content

Commit

Permalink
minor fixes to example
Browse files Browse the repository at this point in the history
  • Loading branch information
bostonaholic authored Aug 26, 2024
1 parent 4f93d3d commit b56b19a
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
Expand Up @@ -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_resourece_name}"
end
SEMIAN_PARAMETERS.merge(name: name)
end
Expand Down

0 comments on commit b56b19a

Please sign in to comment.