Sha256: e397626ad2b2b0238eeb54706a54fb69e30a998907978c25ada328cdd909c518

Contents?: true

Size: 404 Bytes

Versions: 17

Compression:

Stored size: 404 Bytes

Contents

class DynamicAttributeDefinition < ActiveRecord::Base
  belongs_to :attribute_defineable, :polymorphic => true

  # definition should contain a json hash like this:
  # {"body" => {"object_type" => "text"}}
  #
  # If you want more info, you can add other descriptions
  # {"body" => {"object_type" => "text", "name" => "Body", "description" => "What the body will include"}}
  serialize :definition
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
datts_right-0.0.32 lib/datts_right/dynamic_attribute_definition.rb
datts_right-0.0.31 lib/datts_right/dynamic_attribute_definition.rb
datts_right-0.0.30 lib/datts_right/dynamic_attribute_definition.rb
datts_right-0.0.29 lib/datts_right/dynamic_attribute_definition.rb
datts_right-0.0.28 lib/datts_right/dynamic_attribute_definition.rb
datts_right-0.0.27 lib/datts_right/dynamic_attribute_definition.rb
datts_right-0.0.26 lib/datts_right/dynamic_attribute_definition.rb
datts_right-0.0.25 lib/datts_right/dynamic_attribute_definition.rb
datts_right-0.0.24 lib/datts_right/dynamic_attribute_definition.rb
datts_right-0.0.23 lib/datts_right/dynamic_attribute_definition.rb
datts_right-0.0.22 lib/datts_right/dynamic_attribute_definition.rb
datts_right-0.0.21 lib/datts_right/dynamic_attribute_definition.rb
datts_right-0.0.20 lib/datts_right/dynamic_attribute_definition.rb
datts_right-0.0.19 lib/datts_right/dynamic_attribute_definition.rb
datts_right-0.0.18 lib/datts_right/dynamic_attribute_definition.rb
datts_right-0.0.17 lib/datts_right/dynamic_attribute_definition.rb
datts_right-0.0.16 lib/datts_right/dynamic_attribute_definition.rb