Sha256: 56cd566e4e2f62089169b1e606cebec1a873d723bcc9761d64c8497ad89888d1
Contents?: true
Size: 365 Bytes
Versions: 11
Compression:
Stored size: 365 Bytes
Contents
class ContentTypesController < InheritedResources::Base respond_to :html, :json load_and_authorize_resource def update @content_type = ContentType.find(params[:id]) if params[:move] move_position(@content_type, params[:move]) return end update! end def index @content_types = @content_types.page(params[:page]) end end
Version data entries
11 entries across 11 versions & 1 rubygems