Sha256: 7fd3a6212c22709396749cea07d570ce38ce923264a2ab975f083e92c43cde99

Contents?: true

Size: 397 Bytes

Versions: 21

Compression:

Stored size: 397 Bytes

Contents

# Helper for the field model to create valid attributes
module FieldHelper
  # this has issues with not being able to set type
  # I am manually setting it where it is needed to avoid problems
  def valid_attributes
    {
      :name => "Test field name",
      :label => "Test field label",
      :type => DynamicFieldsets::Field,
      :required => true,
      :enabled => true,
    }
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
dynamic_fieldsets-0.1.0 spec/support/field_helper.rb