lib/dato/account/repo/account.rb in dato-0.1.20 vs lib/dato/account/repo/account.rb in dato-0.1.21

- old
+ new

@@ -3,20 +3,10 @@ module Dato module Account module Repo class Account < Base - def create(resource_attributes) - body = JsonApiSerializer.new( - type: :account, - attributes: %i(email password), - required_attributes: %i(email password) - ).serialize(resource_attributes) - - post_request '/account', body - end - def update(resource_attributes) body = JsonApiSerializer.new( type: :account, attributes: %i(email password) ).serialize(resource_attributes) @@ -24,19 +14,9 @@ put_request '/account', body end def find get_request '/account' - end - - def reset_password(resource_attributes) - body = JsonApiSerializer.new( - type: :account, - attributes: %i(email), - required_attributes: %i(email) - ).serialize(resource_attributes) - - post_request '/account/reset_password', body end end end end end