ominous 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/app/models/ominous/warning.rb +3 -1
- data/lib/ominous/version.rb +1 -1
- metadata +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
module Ominous
|
|
2
2
|
class Warning < ActiveRecord::Base
|
|
3
|
-
attr_accessible :name
|
|
3
|
+
attr_accessible :name, :closers_attributes
|
|
4
4
|
|
|
5
5
|
validates :name, :presence => true
|
|
6
6
|
|
|
@@ -17,6 +17,8 @@ module Ominous
|
|
|
17
17
|
:order => :position
|
|
18
18
|
)
|
|
19
19
|
|
|
20
|
+
accepts_nested_attributes_for :closers
|
|
21
|
+
|
|
20
22
|
def self.trigger(name)
|
|
21
23
|
unless exists?(:name => name)
|
|
22
24
|
raise "Attempt to trigger warning failed: #{name} not recognised"
|
data/lib/ominous/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ominous
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.3
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-12-
|
|
12
|
+
date: 2012-12-11 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rails
|