app/controllers/concerns/admin/cms/definitions.rb
# Returns the list definition for this controller, if specified
Returns the list definition for this controller, if specified
Returns the list definition for this controller if specified
def list_definition
      return nil if @definition.nil? or !@definition.key?( :list )
      unless @definition[:list].key?( :_normalised )
        @definition[:list][:columns]     = normalise_list_columns
        @definition[:list][:_normalised] = true
      end
      @definition[:list]
    end
def list_definition return nil if @definition . nil? or ! @definition . key? ( :list ) unless @definition [ :list ] . key? ( :_normalised ) @definition [ :list ] [ :columns ] = normalise_list_columns @definition [ :list ] [ :_normalised ] = true end @definition [ :list ] end
Returns the list definition for this controller, if specified
Returns the list definition for this controller if specified
# if we have no definition # normalise things if we’ve not done it already # return the columns