scriptures 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/scriptures/models/book.rb +17 -0
- data/lib/scriptures/models/chapter.rb +17 -0
- data/lib/scriptures/models/verse.rb +17 -0
- data/lib/scriptures/models/volume.rb +17 -0
- data/lib/scriptures/version.rb +1 -1
- metadata +1 -1
@@ -15,5 +15,22 @@ module Scriptures
|
|
15
15
|
|
16
16
|
has n, :chapters
|
17
17
|
belongs_to :volume
|
18
|
+
|
19
|
+
before :destroy do |i|
|
20
|
+
throw :halt
|
21
|
+
end
|
22
|
+
|
23
|
+
before :save do |i|
|
24
|
+
throw :halt
|
25
|
+
end
|
26
|
+
|
27
|
+
before :create do |i|
|
28
|
+
throw :halt
|
29
|
+
end
|
30
|
+
|
31
|
+
before :update do |i|
|
32
|
+
throw :halt
|
33
|
+
end
|
34
|
+
|
18
35
|
end
|
19
36
|
end
|
@@ -10,5 +10,22 @@ module Scriptures
|
|
10
10
|
|
11
11
|
has n, :verses
|
12
12
|
belongs_to :book
|
13
|
+
|
14
|
+
before :destroy do |i|
|
15
|
+
throw :halt
|
16
|
+
end
|
17
|
+
|
18
|
+
before :save do |i|
|
19
|
+
throw :halt
|
20
|
+
end
|
21
|
+
|
22
|
+
before :create do |i|
|
23
|
+
throw :halt
|
24
|
+
end
|
25
|
+
|
26
|
+
before :update do |i|
|
27
|
+
throw :halt
|
28
|
+
end
|
29
|
+
|
13
30
|
end
|
14
31
|
end
|
@@ -11,5 +11,22 @@ module Scriptures
|
|
11
11
|
property :pilcrow, Boolean
|
12
12
|
|
13
13
|
belongs_to :chapter
|
14
|
+
|
15
|
+
before :destroy do |i|
|
16
|
+
throw :halt
|
17
|
+
end
|
18
|
+
|
19
|
+
before :save do |i|
|
20
|
+
throw :halt
|
21
|
+
end
|
22
|
+
|
23
|
+
before :create do |i|
|
24
|
+
throw :halt
|
25
|
+
end
|
26
|
+
|
27
|
+
before :update do |i|
|
28
|
+
throw :halt
|
29
|
+
end
|
30
|
+
|
14
31
|
end
|
15
32
|
end
|
@@ -12,5 +12,22 @@ module Scriptures
|
|
12
12
|
property :idx, String
|
13
13
|
|
14
14
|
has n, :books
|
15
|
+
|
16
|
+
before :destroy do |i|
|
17
|
+
throw :halt
|
18
|
+
end
|
19
|
+
|
20
|
+
before :save do |i|
|
21
|
+
throw :halt
|
22
|
+
end
|
23
|
+
|
24
|
+
before :create do |i|
|
25
|
+
throw :halt
|
26
|
+
end
|
27
|
+
|
28
|
+
before :update do |i|
|
29
|
+
throw :halt
|
30
|
+
end
|
31
|
+
|
15
32
|
end
|
16
33
|
end
|
data/lib/scriptures/version.rb
CHANGED