Class: Spree::Admin::CustomerNotificationsController

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

Instance Method Summary collapse

Instance Method Details

#collection_url(options = {}) ⇒ Object



16
17
18
# File 'app/controllers/spree/admin/customer_notifications_controller.rb', line 16

def collection_url(options = {})
  admin_customer_notifications_url(options)
end

#indexObject



4
5
6
# File 'app/controllers/spree/admin/customer_notifications_controller.rb', line 4

def index
  @notifications = SpreeCmCommissioner::CustomerNotification.all
end

#model_classObject



8
9
10
# File 'app/controllers/spree/admin/customer_notifications_controller.rb', line 8

def model_class
  SpreeCmCommissioner::CustomerNotification
end

#object_nameObject



12
13
14
# File 'app/controllers/spree/admin/customer_notifications_controller.rb', line 12

def object_name
  'spree_cm_commissioner_customer_notification'
end