todo.txt in valuable-0.9.1 vs todo.txt in valuable-0.9.2
- old
+ new
@@ -1,12 +1,5 @@
-Find some way to do
-
- has_value :something, :klass => Decimal
-
- * must handle BigDecimal not being around
-
-
- has_value :start_date, :default => {Date.today}
- has_value :price, :default => 50, :extend => MoneyFormatter
class SomeSearchThing < Valuable
@@ -17,10 +10,21 @@
Date.parse(input)
end
end
+class Datum < Valuable
+ has_index :by_name
+ has_list :calculations
+end
+-or-
+class Datum < Valuable
+ lists :calculations
+ indexes :by_name
+end
+
+
BEST PRACTICES DOC
When creating a searcher:
class UserSearcher < Valuable
@@ -72,20 +76,8 @@
def initialize(atts = {})
super(atts.except('action', 'controller'))
end
-
-:klass => :decimal
-- When is decimal available? Only load then.
-- If calling :decimal and it hasn't loaded, error
-
-
-
-class Change < Decimal
- extend Valuable::whatever or
- extend Valuable
-
- ...
-end
+what about has_value :number, :construct => 'Decimal#parse'
- do a better job with method_missing