Class: Spree::Admin::GoogleWalletsController

Inherits:
ResourceController
  • Object
show all
Defined in:
app/controllers/spree/admin/google_wallets_controller.rb

Instance Method Summary collapse

Instance Method Details

#remove_hero_imageObject

DELETE /google_wallets/:id/remove_hero_image



25
26
27
# File 'app/controllers/spree/admin/google_wallets_controller.rb', line 25

def remove_hero_image
  object.hero_image.purge
end

#remove_logoObject

DELETE /google_wallets/:id/remove_logo



20
21
22
# File 'app/controllers/spree/admin/google_wallets_controller.rb', line 20

def 
  object..purge
end

#verify_with_googleObject

POST /google_wallets/:id/verify_with_google



11
12
13
14
15
16
17
# File 'app/controllers/spree/admin/google_wallets_controller.rb', line 11

def verify_with_google
  if object.preferred_response.blank?
    create_google_wallet_class
  else
    update_google_wallet_class
  end
end