Class: Adminpanel::Page

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
Base
Defined in:
app/models/adminpanel/page.rb

Class Method Summary collapse

Methods included from Base

#correlative_order_gallery, #destroy_unattached_images

Class Method Details

.whitelisted_attributes(params) ⇒ Object



6
7
8
# File 'app/models/adminpanel/page.rb', line 6

def self.whitelisted_attributes(params)
  params.require(self.name.to_s.underscore.split('/').last).permit!
end