From 1e96e01713bf162f48534dc89e4273d936ae2bf9 Mon Sep 17 00:00:00 2001 From: Anton Date: Wed, 24 Apr 2024 22:15:30 +0700 Subject: [PATCH] Remove unnecessary attribute types from DSL The diff shows the removal of several attribute type definitions, including symbol, date, time and datetime from the dsl.rb file. These attribute definitions were likely not needed or used, leading to unnecessary code that has now been cleaned up. --- lib/datory/attributes/dsl.rb | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/lib/datory/attributes/dsl.rb b/lib/datory/attributes/dsl.rb index 5a4220b..70c404e 100644 --- a/lib/datory/attributes/dsl.rb +++ b/lib/datory/attributes/dsl.rb @@ -40,11 +40,6 @@ def uuid(name, **options) ######################################################################## - def symbol(name, **options) - options = options.merge(from: Symbol) - attribute(name, **options) - end - def string(name, **options) options = options.merge(from: String) attribute(name, **options) @@ -60,21 +55,6 @@ def float(name, **options) attribute(name, **options) end - def date(name, **options) - options = options.merge(from: Date) - attribute(name, **options) - end - - def time(name, **options) - options = options.merge(from: Time) - attribute(name, **options) - end - - def datetime(name, **options) - options = options.merge(from: DateTime) - attribute(name, **options) - end - ######################################################################## def collection_of_attributes