active_admin_bbs 1.0.0 → 1.1.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fef6a9f7b4cfce745eeca0e63be8d550ac504807
4
- data.tar.gz: 93b15a3a3505f157236fef7d5c8470d1b13cd791
3
+ metadata.gz: 5370a19158e88252f98d5f8e05c24820cf4a134a
4
+ data.tar.gz: ba839594ab3e621495e9c70a5f6afb3dc65f5b44
5
5
  SHA512:
6
- metadata.gz: 5ee98dc526932c7122121c2e9c8e6a91a4048d3e3843a50760ecd158337490629b53614ecd5d7897adf8447532880956d04aa3779e0eae38c97d30c1b77f4fe7
7
- data.tar.gz: 5eb2d539e60eb2ff305e198bfe09471d873ac1db2af9be0ae4c948478548f644cadca8aca946e8d2ced9542708df01a60953894cef07eaec6efe7fe9d73b69af
6
+ metadata.gz: 834e90acb8a12c8eec0a71e79efa73b11f7b330538a703681b36ce68a0ba5f55226668e73087acdea693f57c3684996b373e3807d59f2f55f87f8c78f403a35f
7
+ data.tar.gz: 127ad4e78d453f66d376cac01eaf8991a2f8d709cf10c2dff3f736c1e6a720187eff130b81b3ed0d5166bb226ea1e3c8adbfc56b899c536f1a5a15538b062149
@@ -1,4 +1,4 @@
1
- ActiveAdmin.register Bbs::Avatar do
1
+ ActiveAdmin.register Avatar do
2
2
  index do
3
3
  column 'ID', :id
4
4
  column 'avatar', :avatar do |o|
@@ -30,9 +30,9 @@ ActiveAdmin.register Bbs::Avatar do
30
30
  end
31
31
  end
32
32
 
33
- form multipart: true, as: 'bbs_avatar' do |f|
33
+ form multipart: true, as: 'avatar' do |f|
34
34
  f.semantic_errors
35
- f.inputs Bbs::Avatar do
35
+ f.inputs Bbs.config.avatar_class_name do
36
36
  f.input :image, as: :file
37
37
  f.actions
38
38
  end
@@ -42,7 +42,7 @@ ActiveAdmin.register Bbs::Avatar do
42
42
  private
43
43
 
44
44
  def permitted_params
45
- params.permit bbs_avatar: [:image]
45
+ params.permit avatar: [:image]
46
46
  end
47
47
  end
48
48
  end
data/app/admin/user.rb ADDED
@@ -0,0 +1,3 @@
1
+ ActiveAdmin.register Bbs.config.user_class do
2
+ actions :all, except: %i(new)
3
+ end
@@ -7,7 +7,7 @@ module ActiveAdminBbs
7
7
  column do
8
8
  panel I18n.t('active_admin_bbs.dashboard.chart.user_count') do
9
9
  div do
10
- span Bbs::User.count
10
+ span Bbs.config.user_class.count
11
11
  end
12
12
  end
13
13
  end
@@ -32,7 +32,7 @@ module ActiveAdminBbs
32
32
  columns do
33
33
  column do
34
34
  panel I18n.t('active_admin_bbs.dashboard.chart.user_count_by_day') do
35
- line_chart ActiveAdminBbs::Dashboard::cumulate(Bbs::User.group_by_day(:created_at).count)
35
+ line_chart ActiveAdminBbs::Dashboard::cumulate(Bbs.config.user_class.group_by_day(:created_at).count)
36
36
  end
37
37
  end
38
38
  end
@@ -1,3 +1,3 @@
1
1
  module ActiveAdminBbs
2
- VERSION = '1.0.0'
2
+ VERSION = '1.1.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_admin_bbs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-16 00:00:00.000000000 Z
11
+ date: 2017-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -36,14 +36,14 @@ dependencies:
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: 1.0.0
39
+ version: 1.1.0
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: 1.0.0
46
+ version: 1.1.0
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: chartkick
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -138,11 +138,11 @@ files:
138
138
  - MIT-LICENSE
139
139
  - README.md
140
140
  - Rakefile
141
- - app/admin/bbs_avatar.rb
141
+ - app/admin/avatar.rb
142
142
  - app/admin/bbs_category.rb
143
143
  - app/admin/bbs_comment.rb
144
144
  - app/admin/bbs_topic.rb
145
- - app/admin/bbs_user.rb
145
+ - app/admin/user.rb
146
146
  - lib/active_admin_bbs.rb
147
147
  - lib/active_admin_bbs/dashboard.rb
148
148
  - lib/active_admin_bbs/locale/en.yml
@@ -171,7 +171,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
171
171
  version: '0'
172
172
  requirements: []
173
173
  rubyforge_project:
174
- rubygems_version: 2.5.1
174
+ rubygems_version: 2.6.8
175
175
  signing_key:
176
176
  specification_version: 4
177
177
  summary: ''
@@ -1,3 +0,0 @@
1
- ActiveAdmin.register Bbs::User do
2
- actions :all, except: %i(new)
3
- end