lib/magellan/cli/resources/project.rb in magellan-cli-0.7.4 vs lib/magellan/cli/resources/project.rb in magellan-cli-0.7.5
- old
+ new
@@ -15,10 +15,10 @@
desc "update ATTRIBUTES", I18n.t(:update, scope: [:resources, :common, :cmd], resource_name: resource_name)
def update(attrs)
s = load_selection!(self.class)
attrs = JSON.parse(File.readable?(attrs) ? File.read(attrs) : attrs)
- put_json("/admin/project/#{s['id']}/edit", {"project" => attrs})
+ put_json("/admin/project/#{s['id']}/edit.json", {"project" => attrs})
end
desc "create NAME", I18n.t(:create, scope: [:resources, :common, :cmd], resource_name: resource_name)
def create(name)
o = load_selection!(Organization)