Module: HasJsonAttributesOn
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/has_json_attributes_on.rb,
lib/has_json_attributes_on/version.rb,
lib/has_json_attributes_on/type/json.rb,
lib/has_json_attributes_on/type/jsonb.rb,
lib/has_json_attributes_on/type/json_type.rb
Defined Under Namespace
Modules: Type
Constant Summary collapse
- VALUE_TYPE_CLASSES =
{ 'json' => HasJsonAttributesOn::Type::Json, 'jsonb' => HasJsonAttributesOn::Type::Jsonb }
- VERSION =
"0.0.6"
- AXIOMS =
{ 'Boolean' => Axiom::Types::Boolean, 'String' => Axiom::Types::String, 'Decimal' => Axiom::Types::Decimal, 'Date' => Axiom::Types::Date, 'DateTime'=> Axiom::Types::DateTime, 'Time' => Axiom::Types::Time, 'Float' => Axiom::Types::Float, 'Integer' => Axiom::Types::Integer, 'Object' => Axiom::Types::Object, 'Array' => Axiom::Types::Array, 'Set' => Axiom::Types::Set, 'Hash' => Axiom::Types::Hash }
Instance Method Summary collapse
Instance Method Details
#build_json_attributes ⇒ Object
166 167 168 169 170 171 172 |
# File 'lib/has_json_attributes_on.rb', line 166 def build_json_attributes # ensure that we can call the method self._json_attributes_on.each_pair do |data_column, | send(data_column); end return true end |