Sha256: b4b91fc7905f3789650ee1856fa3757f2eea234822b45accd78f92598092086b

Contents?: true

Size: 364 Bytes

Versions: 26

Compression:

Stored size: 364 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

26 entries across 26 versions & 1 rubygems

Version Path
active_list-8.1.0 lib/active_list/definition/field_column.rb
active_list-7.3.0 lib/active_list/definition/field_column.rb
active_list-8.0.0 lib/active_list/definition/field_column.rb
active_list-7.2.0 lib/active_list/definition/field_column.rb
active_list-7.1.0 lib/active_list/definition/field_column.rb
active_list-7.0.0 lib/active_list/definition/field_column.rb
active_list-6.10.0 lib/active_list/definition/field_column.rb
active_list-6.9.4 lib/active_list/definition/field_column.rb
active_list-6.9.3 lib/active_list/definition/field_column.rb
active_list-6.9.2 lib/active_list/definition/field_column.rb
active_list-6.9.1 lib/active_list/definition/field_column.rb
active_list-6.9.0 lib/active_list/definition/field_column.rb
active_list-6.8.3 lib/active_list/definition/field_column.rb
active_list-6.8.2 lib/active_list/definition/field_column.rb
active_list-6.8.1 lib/active_list/definition/field_column.rb
active_list-6.8.0 lib/active_list/definition/field_column.rb
active_list-6.7.6 lib/active_list/definition/field_column.rb
active_list-6.7.5 lib/active_list/definition/field_column.rb
active_list-6.7.4 lib/active_list/definition/field_column.rb
active_list-6.7.3 lib/active_list/definition/field_column.rb