lib/aggro/attribute_dsl.rb in aggro-0.0.3 vs lib/aggro/attribute_dsl.rb in aggro-0.0.4

- old
+ new

@@ -41,10 +41,14 @@ def boolean(name) create_attrs name, Transform::Boolean end + def date(name) + create_attrs name, Transform::Date + end + def email(name) create_attrs name, Transform::Email end def generate_id(name) @@ -68,9 +72,13 @@ puts '`money` and `monetize` gems must be present to use money type' end def string(name) create_attrs name, Transform::String + end + + def time(name) + create_attrs name, Transform::Time end def time_interval(name) require 'time-interval'