golden-setting 0.2.0 → 0.3.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: e10bc3bbf37ba294c7adf764fa154e617492e7da
4
- data.tar.gz: 9eaf95dcd5b5d33ece8205ced09f6ee04f14b6d8
3
+ metadata.gz: 64763876554cc8a8879adccac8a0a09d0bc9b3d9
4
+ data.tar.gz: 7ed2e3e26301b8c437f2f897a962601478582b93
5
5
  SHA512:
6
- metadata.gz: 777e42ef1b19c72937e45df4a61a6d0815d424c307bd5a77b0f2885efe828f37dcd15012e4174619007c126e9fefb0fb3b48406e463d5dca49eb5afc9ab87db0
7
- data.tar.gz: 3e7e51f341aa892a3192a0f3761e8da352a2be282daf1e5e0eaec611b4b25d162bf45415f43d20880d7b03a7a85889933cb73bb3604f4996fecdefb1a4a56f7a
6
+ metadata.gz: 3e4ae0a30394dd9309c747798cdbd958e619fca398f9e9250ac1786618754a524f7a64605e97619cd7659fc2b7da41a938e6ccc9ee65c46be2d334b23ba288d0
7
+ data.tar.gz: 30169adda9dda921b34950882cd27cfe363e834cd945c6781c1bc439ae652e9f3f648055c85e9f2ce7687afa611b7301375d9b10a8c821054f1ff2f67b92edf2
data/README.md CHANGED
@@ -49,7 +49,7 @@ $ rake db:migrate
49
49
 
50
50
  Remember add setting abilities for `cancan`.
51
51
 
52
- ```
52
+ ```ruby
53
53
  can :index, Setting
54
54
  can :batch_update, Setting
55
55
  ```
@@ -15,6 +15,7 @@ en:
15
15
  list: 'List'
16
16
  new:
17
17
  title: 'New setting'
18
+ list: 'List'
18
19
  show:
19
20
  title: 'Setting - %{name}'
20
21
  list:
@@ -15,6 +15,7 @@ zh-TW:
15
15
  list: '設定列表'
16
16
  new:
17
17
  title: '新增設定'
18
+ list: '設定列表'
18
19
  show:
19
20
  title: '設定 - %{name}'
20
21
  list:
@@ -1,3 +1,6 @@
1
1
  class <%= class_name %> < Golden::Setting::Base
2
2
  include Golden::Setting::Cache
3
+ <% if ::Rails.version.to_i < 4 %>
4
+ attr_accessible :name, :field_type, :field_values, :group
5
+ <% end %>
3
6
  end
@@ -9,7 +9,6 @@ module Golden
9
9
  collection: []
10
10
  }
11
11
  serialize :form_options
12
- attr_accessible :field_type, :field_values
13
12
  end
14
13
 
15
14
  module ClassMethods
@@ -3,7 +3,6 @@ module Golden
3
3
  module Group
4
4
  extend ActiveSupport::Concern
5
5
  included do
6
- attr_accessible :group
7
6
  # validates :group, presence: true
8
7
  end
9
8
 
@@ -3,7 +3,6 @@ module Golden
3
3
  module Name
4
4
  extend ActiveSupport::Concern
5
5
  included do
6
- attr_accessible :name
7
6
  validates :name, presence: true
8
7
  end
9
8
 
@@ -1,5 +1,5 @@
1
1
  module Golden
2
2
  module Setting
3
- VERSION = '0.2.0'
3
+ VERSION = '0.3.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: golden-setting
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tse-Ching Ho
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-06-10 00:00:00.000000000 Z
11
+ date: 2013-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord