forked from aiwilliams/dataset
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CHANGELOG
63 lines (41 loc) · 1.85 KB
/
CHANGELOG
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
*1.3.2 [Bugfix]
* Fixed bug where sti finder names were not always generated correctly [aiwilliams]
*1.3.0 [Rails 2.3.2] (??)
* Supporting Rails 2.3.2 [mhawkins, underlog]
* Added tasks to load path so folks can require 'dataset.rake' [aiwilliams]
* Updated gemspec to include dependencies [aiwilliams]
*1.2.0 [Cucumber] (April 8, 2009)
* Support for cucumber [jgarber, seancribbs]
*1.1.0 [STI, belongs_to] (February 14, 2009)
* STI is better supported for inserting, naming and finding records [aiwilliams]
class Place < ActiveRecord::Base; end
class State < Place; end
class NorthCarolina < State; end
create_record(NorthCarolina, :state) # no need to define the 'type' column value
states(:state) == places(:state) == north_carolinas(:state) # read with the class names pluralized
* Moved to jeweler for much cleaner, github embracing gem building [aiwilliams]
* Support for simple belongs to associations [aiwilliams]
class Person < ActiveRecord::Base; end
class Note < ActiveRecord::Base
belongs_to :person
end
person_id = create_record Person, :myguy
create_record Note, :person => :myguy
Note.last.person_id == person_id
* Models inside modules are supported a little more conveniently [aiwilliams]
module MList
class Message < ActiveRecord::Base
end
end
# We'll get rid of the underscore in 'm_list_messages'
create_record MList::Message, :test
mlist_messages(:test)
* Helper method for converting strings to useful symbols for finding records [siannopollo]
This is useful if you write creator methods of your own.
def create_person(attributes)
create_record Person, name_to_sym(attributes[:name]), attributes
end
create_person(:name => 'Little John')
people(:little_john)
*1.0.0 [Scenarios Replacement] (December 15, 2008)
* Drop-in replacement for Scenarios plugin of old [aiwilliams]