Class: Pageflow::Editor::WidgetsController
- Inherits:
 - 
      ApplicationController
      
        
- Object
 - ActionController::Base
 - ApplicationController
 - Pageflow::Editor::WidgetsController
 
 
- Defined in:
 - app/controllers/pageflow/editor/widgets_controller.rb
 
Instance Method Summary collapse
Instance Method Details
#batch ⇒ Object
      16 17 18 19 20 21 22  | 
    
      # File 'app/controllers/pageflow/editor/widgets_controller.rb', line 16 def batch subject = find_subject (:edit, subject.to_model) subject..batch_update!() render(json: {}) end  | 
  
#index ⇒ Object
      8 9 10 11 12 13 14  | 
    
      # File 'app/controllers/pageflow/editor/widgets_controller.rb', line 8 def index subject = find_subject (:index_widgets_for, subject.to_model) @widgets = subject.(include_placeholders: true) respond_with(@widgets) end  |