lib/discourse_api/api/groups.rb in discourse_api-0.3.6 vs lib/discourse_api/api/groups.rb in discourse_api-0.4.0
- old
+ new
@@ -1,13 +1,13 @@
module DiscourseApi
module API
module Groups
def create_group(args)
- params = API.params(args)
- .required(:name)
- .default(visible: true)
- .to_h
- post("/admin/groups", group: params)
+ args = API.params(args)
+ .required(:name)
+ .default(visible: true)
+ .to_h
+ post("/admin/groups", group: args)
end
def groups
response = get("/admin/groups.json")
response.body