We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2dfec78 commit f107cc6Copy full SHA for f107cc6
README.rdoc
@@ -4,16 +4,28 @@ Gemfile
4
gem 'locked', git => 'git@github.com:BlueLemon/Lockable.git'
5
6
Model
7
- acts_as_locked(:foo, :bar)
+
8
+ Model < ActiveRecord::Base
9
+ acts_as_locked(:foo, :bar)
10
+ end
11
12
Migration
- add_column :model, :locked_at, :datetime
13
+ class AddLockedToPerson < ActiveRecord::Migration
14
+ def change
15
+ add_column :model, :locked_at, :datetime
16
17
18
19
20
21
Example of usage
22
23
In the Person model add
- acts_as_locked(:name)
24
+ class Person < ActiveRecord::Base
25
+ # name:string
26
+ # age:integer
27
+ acts_as_locked(:name)
28
29
30
In rails console
31
p = Person.new
0 commit comments