Sha256: 4efe87af22e6b17cd02ca47a0de062d028fbd9e8772cb063d74efe557a482225

Contents?: true

Size: 536 Bytes

Versions: 4

Compression:

Stored size: 536 Bytes

Contents

require_dependency "brightcontent/application_controller"

module Brightcontent
  class BaseController < ApplicationController
    inherit_resources
    helper_method :scopes_configuration

    include DefaultActions
    include Pagination

    private

    def list_fields
      form_fields
    end
    helper_method :list_fields

    def form_fields
      default_fields
    end
    helper_method :form_fields

    def default_fields
      resource_class.column_names - %w{id created_at updated_at password_digest}
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
brightcontent-core-2.0.6 app/controllers/brightcontent/base_controller.rb
brightcontent-core-2.0.5 app/controllers/brightcontent/base_controller.rb
brightcontent-core-2.0.3 app/controllers/brightcontent/base_controller.rb
brightcontent-core-2.0.2 app/controllers/brightcontent/base_controller.rb