Sha256: 626802e3cfafa974cac23fc03798a4f9d0f4044be0b53ab272f69deb60efa403

Contents?: true

Size: 496 Bytes

Versions: 7

Compression:

Stored size: 496 Bytes

Contents

require_dependency "brightcontent/application_controller"

module Brightcontent
  class BaseController < ApplicationController
    inherit_resources

    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

7 entries across 7 versions & 2 rubygems

Version Path
brightcontent-core-2.0.1 app/controllers/brightcontent/base_controller.rb
brightcontent-core-2.0.0.alpha6 app/controllers/brightcontent/base_controller.rb
brightcontent-core-2.0.0.alpha5 app/controllers/brightcontent/base_controller.rb
brightcontent-2.0.0.alpha3 core/app/controllers/brightcontent/base_controller.rb
brightcontent-core-2.0.0.alpha3 app/controllers/brightcontent/base_controller.rb
brightcontent-2.0.0.alpha2 core/app/controllers/brightcontent/base_controller.rb
brightcontent-core-2.0.0.alpha2 app/controllers/brightcontent/base_controller.rb