Class: Cms::ContentTypesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/cms/content_types_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#no_browser_caching

Instance Method Details

#indexObject



6
7
8
9
10
11
12
# File 'app/controllers/cms/content_types_controller.rb', line 6

def index
  content_type = ContentType.named(params[:content_type]).first
  @attributes = content_type.orderable_attributes.sort()
  respond_to do |format|
    format.js { render :layout => false }
  end
end