Skip to content

Commit

Permalink
Remove unnecessary attribute types from DSL
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
afuno committed Apr 24, 2024
1 parent 9ec76da commit 1e96e01
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions lib/datory/attributes/dsl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down

0 comments on commit 1e96e01

Please sign in to comment.