Sha256: 575905719b173dc7b34b24ff5221136cdb4b0bca7db03eba425178c550abd081

Contents?: true

Size: 368 Bytes

Versions: 21

Compression:

Stored size: 368 Bytes

Contents

module ActiveList

  module Definition

    class FieldColumn < AbstractColumn
      attr_reader :form_name

      def initialize(table, name, options = {})
        super(table, name, options)
        @form_name = options.delete(:form_name)
      end

      def header_code
        "#{@table.model.name}.human_attribute_name('#{@name}')"
      end
    end

  end

end

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
active_list-6.5.1 lib/active_list/definition/field_column.rb
active_list-6.5.0 lib/active_list/definition/field_column.rb
active_list-6.4.2 lib/active_list/definition/field_column.rb
active_list-6.4.1 lib/active_list/definition/field_column.rb
active_list-6.4.0 lib/active_list/definition/field_column.rb
active_list-6.3.1 lib/active_list/definition/field_column.rb
active_list-6.3.0 lib/active_list/definition/field_column.rb
active_list-6.2.4 lib/active_list/definition/field_column.rb
active_list-6.2.3 lib/active_list/definition/field_column.rb
active_list-6.2.1 lib/active_list/definition/field_column.rb
active_list-6.2.0 lib/active_list/definition/field_column.rb
active_list-6.1.5 lib/active_list/definition/field_column.rb
active_list-6.1.4 lib/active_list/definition/field_column.rb
active_list-6.1.3 lib/active_list/definition/field_column.rb
active_list-6.1.2 lib/active_list/definition/field_column.rb
active_list-6.1.1 lib/active_list/definition/field_column.rb
active_list-6.1.0 lib/active_list/definition/field_column.rb
active_list-6.0.1 lib/active_list/definition/field_column.rb
active_list-6.0.0 lib/active_list/definition/field_column.rb
active-list-5.0.1 lib/active_list/definition/field_column.rb