effective_style_guide 1.3.8 → 1.4.0
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 +14 -6
- data/lib/effective_style_guide/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b9152125f48cd71e43e31515011f5bbb21d108be
|
4
|
+
data.tar.gz: a251d7e68e13e1cc672bef31a1c48346a3661ee9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d12bb7756967722c9c14d2a1e4f0f03576cd94f027ea7c5ee21f1b95d6d4ab662b2ba54fda7ee303271429cce72d291f331d65d3624c1ca7129d498776398dd
|
7
|
+
data.tar.gz: 27bb60770d4158ca8ae223d9e92737dcc4c44020ecb6eb2d45cda665408ed26a8ab227760078f42a56e2e68cfd38b7d7768d576662840cef664f6dc11594b199
|
@@ -1,10 +1,6 @@
|
|
1
1
|
module Effective
|
2
|
-
class StyleGuide
|
3
|
-
|
4
|
-
|
5
|
-
if defined?(EffectiveAssets)
|
6
|
-
acts_as_asset_box files: 1..6
|
7
|
-
end
|
2
|
+
class StyleGuide < ActiveRecord::Base
|
3
|
+
acts_as_asset_box files: 1..6
|
8
4
|
|
9
5
|
ATTRIBUTES = [
|
10
6
|
:id, :title, :email, :password, :number, :range, :category, :content, :phone,
|
@@ -14,6 +10,18 @@ module Effective
|
|
14
10
|
attr_accessor *ATTRIBUTES
|
15
11
|
validates *ATTRIBUTES, presence: true
|
16
12
|
|
13
|
+
def self.columns
|
14
|
+
@columns ||= []
|
15
|
+
end
|
16
|
+
|
17
|
+
def self.column_defaults
|
18
|
+
{}
|
19
|
+
end
|
20
|
+
|
21
|
+
def self.has_attribute?(*args)
|
22
|
+
false
|
23
|
+
end
|
24
|
+
|
17
25
|
def static_text
|
18
26
|
'some static text'
|
19
27
|
end
|