Class: Dhatu::PromotionEnquiriesController
- Inherits:
-
ResourceController
- Object
- Kuppayam::BaseController
- ApplicationController
- ResourceController
- Dhatu::PromotionEnquiriesController
- Defined in:
- app/controllers/dhatu/promotion_enquiries_controller.rb
Instance Method Summary collapse
Methods inherited from ResourceController
#configure_filter_param_mapping, #get_category_filters
Instance Method Details
#show ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'app/controllers/dhatu/promotion_enquiries_controller.rb', line 4 def show @promotion_enquiry = @r_object = Dhatu::PromotionEnquiry.find_by_id(params[:id]) if @promotion_enquiry @promotion_enquiry.read! if @promotion_enquiry.new? || @promotion_enquiry.unread? else set_notification(false, I18n.t('status.error'), I18n.t('status.not_found', item: default_item_name.titleize)) end end |