Class: Workarea::Api::Storefront::EmailSignupsController
- Inherits:
-
ApplicationController
- Object
- Workarea::ApplicationController
- ApplicationController
- Workarea::Api::Storefront::EmailSignupsController
- Defined in:
- app/controllers/workarea/api/storefront/email_signups_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
Methods included from UserActivity
#assert_current_user_activity_id, #current_user_activity_id, #user_activity
Methods included from Authentication
#authentication?, #current_user
Instance Method Details
#create ⇒ Object
9 10 11 |
# File 'app/controllers/workarea/api/storefront/email_signups_controller.rb', line 9 def create @signup = Workarea::Email::Signup.create!(email: params[:email]) end |
#show ⇒ Object
5 6 7 |
# File 'app/controllers/workarea/api/storefront/email_signups_controller.rb', line 5 def show @email_signup = Workarea::Storefront::EmailSignupsViewModel.new end |