Sha256: 9236482fecadaf1c7345763fcb5edaaabc7f0b78485bfe6a2fc4da9059465d29

Contents?: true

Size: 432 Bytes

Versions: 23

Compression:

Stored size: 432 Bytes

Contents

module Brightcontent
  module ModelExtensions
    extend ActiveSupport::Concern

    module ClassMethods
      def brightcontent_columns
        (column_names + added_brightcontent_columns).uniq
      end

      def add_brightcontent_column(column_name)
        added_brightcontent_columns << column_name.to_s
      end

      def added_brightcontent_columns
        @_added_brightcontent_columns ||= []
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
brightcontent-core-2.6.0 lib/brightcontent/model_extensions.rb
brightcontent-core-2.5.1 lib/brightcontent/model_extensions.rb
brightcontent-core-2.5.0 lib/brightcontent/model_extensions.rb
brightcontent-core-2.4.6 lib/brightcontent/model_extensions.rb
brightcontent-core-2.4.5 lib/brightcontent/model_extensions.rb
brightcontent-core-2.4.4 lib/brightcontent/model_extensions.rb
brightcontent-core-2.4.3 lib/brightcontent/model_extensions.rb
brightcontent-core-2.4.2 lib/brightcontent/model_extensions.rb
brightcontent-core-2.4.1 lib/brightcontent/model_extensions.rb
brightcontent-core-2.4.0 lib/brightcontent/model_extensions.rb
brightcontent-core-2.3.4 lib/brightcontent/model_extensions.rb
brightcontent-core-2.3.3 lib/brightcontent/model_extensions.rb
brightcontent-core-2.3.2 lib/brightcontent/model_extensions.rb
brightcontent-core-2.3.1 lib/brightcontent/model_extensions.rb
brightcontent-core-2.3.0 lib/brightcontent/model_extensions.rb
brightcontent-core-2.2.2 lib/brightcontent/model_extensions.rb
brightcontent-core-2.2.1 lib/brightcontent/model_extensions.rb
brightcontent-core-2.2.0 lib/brightcontent/model_extensions.rb
brightcontent-core-2.1.5 lib/brightcontent/model_extensions.rb
brightcontent-core-2.1.4 lib/brightcontent/model_extensions.rb