my_admin 0.0.3 → 0.0.4
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 +8 -8
- data/app/assets/stylesheets/my_admin/plugins/pageguide/pageguide.css +2 -2
- data/app/model/my_admin/group.rb +1 -0
- data/app/model/my_admin/log.rb +1 -0
- data/app/model/my_admin/user.rb +1 -0
- data/lib/my_admin/engine.rb +1 -0
- data/lib/my_admin/model_configuration.rb +1 -1
- data/lib/my_admin/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OGJjMDhlNTQxM2NkYWY4ZDQxODYwZTUzOGMxNThiNjA1MDBlZjEyZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YTQ0ZWVhYTE0Y2RmOGYyYTExMDdhOWI4OWNlNjY5NDg5MjEwZTI3MA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NzZhYTUxZDk1M2I2ZjZiMWEwMGU3ZDA2Y2ZjZDVkMzYxNDg2OWZjYTQwMDQ4
|
10
|
+
Y2ZlNGEzOTBhYWQ4MDVmNWZiOTUxMzYxNmU2N2ExNzEzMGM4NWZjNjg4M2Ey
|
11
|
+
ZWU1MzJiYThmY2NkODAwOTUwNGI2MTVkMWVhMGFjMzhjZTk4YWM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
M2UxY2Y1MTA3YjAwZDE2MDE3ZTYwMjIyMjA3Njg0ZTRjODA2NWQzNzAzNTNi
|
14
|
+
NWIwMmE5MGQxZDdhM2U4Yjc5ZDJhYWZiMTQyNDQzZGJmMDkxZDAxZDMwMjIw
|
15
|
+
N2I5M2E3NDhhNDM1NGRjMTg3MjdkZWY2ZTA3YWFlMWMwMzM3ZjU=
|
@@ -110,7 +110,7 @@
|
|
110
110
|
opacity: 0;
|
111
111
|
}
|
112
112
|
}
|
113
|
-
|
113
|
+
/*.pg-pulse-frames 0% {
|
114
114
|
-webkit-transform: rotate(0) scale(1) skew(0) translate(0);
|
115
115
|
-moz-transform: rotate(0) scale(1) skew(0) translate(0);
|
116
116
|
-o-transform: rotate(0) scale(1) skew(0) translate(0);
|
@@ -129,7 +129,7 @@
|
|
129
129
|
-o-border-radius: 20px;
|
130
130
|
border-radius: 20px;
|
131
131
|
opacity: 0;
|
132
|
-
}
|
132
|
+
}*/
|
133
133
|
/* Mixins
|
134
134
|
================================================== */
|
135
135
|
.pg-disable-select {
|
data/app/model/my_admin/group.rb
CHANGED
data/app/model/my_admin/log.rb
CHANGED
@@ -10,6 +10,7 @@ class MyAdmin::Log < ActiveRecord::Base
|
|
10
10
|
}
|
11
11
|
|
12
12
|
config_my_admin do |admin|
|
13
|
+
admin.application = "authentication"
|
13
14
|
admin.list_display = [:user, :application_name, :model_name, :action_name, :object, :created_at]
|
14
15
|
admin.filters = []
|
15
16
|
admin.permissions = [:list]
|
data/app/model/my_admin/user.rb
CHANGED
@@ -34,6 +34,7 @@ class MyAdmin::User < ActiveRecord::Base
|
|
34
34
|
validates_attachment_content_type :photo, :content_type => ['image/jpg', 'image/jpeg', 'image/pjpeg', 'image/gif', 'image/png', 'image/x-png'], :allow_nil => true
|
35
35
|
|
36
36
|
config_my_admin do |admin|
|
37
|
+
admin.application = "authentication"
|
37
38
|
admin.list_display = [:full_name, :username, :email, :superuser, :active]
|
38
39
|
admin.filters = [:full_name, :username, :email]
|
39
40
|
admin.export_display = [:full_name, :username, :email, :superuser_export, :active_export ]
|
data/lib/my_admin/engine.rb
CHANGED
@@ -4,6 +4,7 @@ class Engine < Rails::Engine
|
|
4
4
|
|
5
5
|
# paths.app << File.join(path, "app")
|
6
6
|
|
7
|
+
config.assets.precompile += %w( ckeditor/* )
|
7
8
|
config.assets.precompile += %w( my_admin/application.css, my_admin/application_locked.css, my_admin/application_off.css )
|
8
9
|
config.assets.precompile += %w( my_admin/application.js, my_admin/application_locked.js, my_admin/application_off.js )
|
9
10
|
|
@@ -6,7 +6,7 @@ module MyAdmin
|
|
6
6
|
def initialize(klass)
|
7
7
|
begin
|
8
8
|
@class = klass
|
9
|
-
@application = "
|
9
|
+
@application = "content"
|
10
10
|
@permissions = [:list, :create, :update, :destroy, :export]
|
11
11
|
if @class.table_exists?
|
12
12
|
@list_display = (klass.columns.map{ |c| c.name } - ['id', 'created_at', 'updated_at']) #, 'created_at', 'updated_at'])
|
data/lib/my_admin/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: my_admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marcos Vinicius von Gal dos Santos
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|