lib/party_bus/models/concerns/publishable.rb in party_bus-0.1.15 vs lib/party_bus/models/concerns/publishable.rb in party_bus-0.1.16
- old
+ new
@@ -40,10 +40,10 @@
end
# This method is overrideable in case the resource name in party bus differs
# from the model name. By default we just use the model name.
def pb_resource_name
- self.class.to_s.camelize
+ self.class.to_s.underscore
end
def pb_serialize(action = nil)
payload = if self.respond_to?(:attributes)
self.attributes