Sha256: da76f9d23887b1284bafbf40109a9f5dab830878c418ab49130fbde28dc5eb8b

Contents?: true

Size: 327 Bytes

Versions: 9

Compression:

Stored size: 327 Bytes

Contents

class RaceCar	< ActiveRecord::Base
	enum_attr :gear, %w(reverse ^neutral first second over_drive)
	enum_attr :choke, %w(^none medium full)
end

#gear = enumerated column attribute
#choke = enumerated non-column attribute
#lights = non-enumerated column attribute

=begin
	t.string :name
	t.string :gear
	t.string :lights
=end

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
jeffp-enumerated_attribute-0.2.3 spec/active_record/race_car.rb
edave-enumerated_attribute-0.2.18 spec/active_record/race_car.rb
enumerated_attribute-0.2.16 spec/active_record/race_car.rb
enumerated_attribute-0.2.13 spec/active_record/race_car.rb
enumerated_attribute-0.2.12 spec/active_record/race_car.rb
enumerated_attribute-0.2.11 spec/active_record/race_car.rb
enumerated_attribute-0.2.10 spec/active_record/race_car.rb
enumerated_attribute-0.2.8 spec/active_record/race_car.rb
enumerated_attribute-0.2.7 spec/active_record/race_car.rb