Class: Spotlight::ContactEmailController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ApplicationController
- Spotlight::ContactEmailController
- Defined in:
- app/controllers/spotlight/contact_email_controller.rb
Overview
CRUD actions for exhibit contact emails
Instance Method Summary collapse
Methods included from Spotlight::Concerns::ApplicationController
#enabled_in_spotlight_view_type_configuration?, #field_enabled?
Methods included from Controller
#blacklight_config, #current_exhibit, #current_masthead, #current_masthead=, #current_site, #default_url_options, #exhibit_masthead?, #exhibit_search_action_url, #exhibit_search_facet_path, #resource_masthead?, #search_action_url, #search_facet_path, #set_exhibit_locale_scope, #set_locale
Methods included from Config
#exhibit_specific_blacklight_config
Instance Method Details
#destroy ⇒ Object
13 14 15 16 |
# File 'app/controllers/spotlight/contact_email_controller.rb', line 13 def destroy @contact_email.destroy render json: { success: true, error: nil } end |