effective_style_guide 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/effective/style_guide.rb +2 -19
- data/lib/effective_style_guide/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d24a4d856695248b04d97fb9259742bb4fbf1647
|
4
|
+
data.tar.gz: 0e6081a373ec6b5b9c44e68bdb38603fd551ff7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64965adf79bd62d76f7bd4bcf632172d2e2d376f0efafe37fe1be7cf3fc84909a31f3a4ee1bd298eb9e00bce67df14e319a005b015d8ffd9125a694a8701bbbe
|
7
|
+
data.tar.gz: 34bbe57d6672082fe91aaa811c1d3a1d1d0bed65681117b7e1a2d7216b50b699c80eb40c7d73ce3fe3152742b6b1162594d0275899ed669645987a1b3ad75711
|
@@ -1,5 +1,6 @@
|
|
1
1
|
module Effective
|
2
|
-
class StyleGuide
|
2
|
+
class StyleGuide
|
3
|
+
include ActiveModel::Model
|
3
4
|
|
4
5
|
if defined?(EffectiveAssets)
|
5
6
|
acts_as_asset_box files: 1..6
|
@@ -15,28 +16,10 @@ module Effective
|
|
15
16
|
attr_accessor *ATTRIBUTES
|
16
17
|
validates *ATTRIBUTES, presence: true
|
17
18
|
|
18
|
-
def initialize(*args)
|
19
|
-
super
|
20
|
-
|
21
|
-
self.color = 'black'
|
22
|
-
end
|
23
|
-
|
24
19
|
def id
|
25
20
|
object_id
|
26
21
|
end
|
27
22
|
|
28
|
-
def self.columns
|
29
|
-
@columns ||= []
|
30
|
-
end
|
31
|
-
|
32
|
-
def self.column_defaults
|
33
|
-
{}
|
34
|
-
end
|
35
|
-
|
36
|
-
def self.has_attribute?(*args)
|
37
|
-
false
|
38
|
-
end
|
39
|
-
|
40
23
|
def static_text
|
41
24
|
'some static text'
|
42
25
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_style_guide
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-02-
|
11
|
+
date: 2018-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|