Sha256: aa19f86268ac12767f556731cc30bad658b4e1178aa3788691b84aa7b3569afb

Contents?: true

Size: 566 Bytes

Versions: 5

Compression:

Stored size: 566 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
      default_fields - %w{attachments}
    end
    helper_method :list_fields

    def form_fields
      default_fields
    end
    helper_method :form_fields

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

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
brightcontent-core-2.0.12 app/controllers/brightcontent/base_controller.rb
brightcontent-core-2.0.11 app/controllers/brightcontent/base_controller.rb
brightcontent-core-2.0.10 app/controllers/brightcontent/base_controller.rb
brightcontent-core-2.0.9 app/controllers/brightcontent/base_controller.rb
brightcontent-core-2.0.8 app/controllers/brightcontent/base_controller.rb