We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4e8a61 commit 68e119eCopy full SHA for 68e119e
lib/pipedrive/resource.rb
@@ -73,7 +73,7 @@ def has_many(resource_name, args = {})
73
"For example has_many :deals, class_name: 'Deal'"
74
end
75
class_name_lower_case = class_name.downcase
76
- singular = args[:singular] || class_name_lower_case[0..]
+ singular = args[:singular] || class_name_lower_case
77
# always include all the data of the resource
78
options = { "include_#{class_name_lower_case}_data": 1 }
79
# add namespace to class_name
0 commit comments