Skip to content

Commit

Permalink
scoped callbacks and simple validations
Browse files Browse the repository at this point in the history
  • Loading branch information
lancejpollard committed Sep 18, 2010
1 parent b815035 commit 1db31df
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/lib/user.rb
@@ -1,9 +1,7 @@
class User < ActiveRecord::Base
include Cockpit

class User < ActiveRecord::Base
attr_accessor :name, :car

cockpit :active_record do
cockpit do
implicitly_typed do
string "Lance"
array %w(red green blue)
Expand Down

0 comments on commit 1db31df

Please sign in to comment.