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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 18b0f17114ce0854f32a746049cb25c1b79fc53b
4
- data.tar.gz: 120d946bd4e11ce36b5ae2ece495d85b341013cd
3
+ metadata.gz: b9152125f48cd71e43e31515011f5bbb21d108be
4
+ data.tar.gz: a251d7e68e13e1cc672bef31a1c48346a3661ee9
5
5
  SHA512:
6
- metadata.gz: d59129ea4789365675891e6e0cd4bbbedb6d0844e446e63511620515946fc1afefb1b3ca86002457a2011e119bf20d4fbcd9dc2402969b2a655243888ffef9c4
7
- data.tar.gz: 4fce52f5ca8b65936aaba06c563c127c8b1369b62daf8a5e02ba815ac28289d1470b6a70fec2d675032ef77248980f5b6931d47a65a43f25cf6ea97029a52f7b
6
+ metadata.gz: 8d12bb7756967722c9c14d2a1e4f0f03576cd94f027ea7c5ee21f1b95d6d4ab662b2ba54fda7ee303271429cce72d291f331d65d3624c1ca7129d498776398dd
7
+ data.tar.gz: 27bb60770d4158ca8ae223d9e92737dcc4c44020ecb6eb2d45cda665408ed26a8ab227760078f42a56e2e68cfd38b7d7768d576662840cef664f6dc11594b199
@@ -1,10 +1,6 @@
1
1
  module Effective
2
- class StyleGuide
3
- include ActiveModel::Model
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
@@ -1,3 +1,3 @@
1
1
  module EffectiveStyleGuide
2
- VERSION = '1.3.8'.freeze
2
+ VERSION = '1.4.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_style_guide
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.8
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect