rails_admin_cms 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/app/models/naming/form.rb +10 -0
- data/app/models/viewable/field/url.rb +1 -1
- data/db/migrate/20151231054310_create_viewable_block.rb +1 -1
- data/db/migrate/20151231102148_create_viewable_page.rb +1 -1
- data/db/migrate/20160101124428_create_viewable_form.rb +1 -1
- data/lib/generators/cms/install/templates/app/views/layouts/application.html.erb +1 -1
- data/lib/generators/cms/install/templates/config/initializers/rails_admin.rb +7 -2
- data/lib/rails_admin_cms/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 47d6104a8249cfb64b0579732b7abdf5e9600c57
|
4
|
+
data.tar.gz: 12c545d7bdaa8a096d50e28c31a3a928ca274f8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c790c31c68a1cff583a72f57f983a0c1666532ab6d6ab6f7788f7e75e7c51aeab057f19eac6436b33d4f0aca6024ca97b68f6820c90eddc4abb077249729d2c9
|
7
|
+
data.tar.gz: ad2cf322ad079e6fd0c6c8769aad3e268d5b9b1bed108ff91c5b7169da1464d785cda76a2adadb7bfe1c069b730176c4521cc749e83f8585297be1ae7c30aa9e
|
data/README.md
CHANGED
@@ -23,6 +23,8 @@ Seamlessly adds some useful classes to the body tag within your layout in order
|
|
23
23
|
|
24
24
|
* Documentation
|
25
25
|
* Generators
|
26
|
+
* Setup PaperTrail
|
27
|
+
* Setup Globalize on Form::Field and Form::Email
|
26
28
|
* Published Pages/Forms
|
27
29
|
* Mailchimp integration
|
28
30
|
* More Specs
|
data/app/models/naming/form.rb
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
module Naming
|
2
2
|
module Form
|
3
3
|
class << self
|
4
|
+
def models
|
5
|
+
@_models ||= Naming::Form.structure_models + Naming::Form.static_models + %w[
|
6
|
+
Form::Row
|
7
|
+
]
|
8
|
+
end
|
9
|
+
|
10
|
+
def static_models
|
11
|
+
@_static_models ||= Naming::Viewable::Form.static_names.map{ |name| "Form::#{name.camelize}" }
|
12
|
+
end
|
13
|
+
|
4
14
|
def structure_models
|
5
15
|
%w[
|
6
16
|
Form::Structure
|
@@ -19,15 +19,20 @@ RailsAdmin.config do |config|
|
|
19
19
|
|
20
20
|
### More at https://github.com/sferik/rails_admin/wiki/Base-configuration
|
21
21
|
|
22
|
+
config.included_models = Naming::Viewable.models + Naming::Form.models + %w[
|
23
|
+
UniqueKey
|
24
|
+
Setting
|
25
|
+
Rich::RichFile
|
26
|
+
]
|
27
|
+
|
22
28
|
config.actions do
|
23
29
|
dashboard # mandatory
|
24
30
|
index # mandatory
|
25
31
|
new do
|
26
|
-
except Naming::Viewable.models + Naming::Form.
|
32
|
+
except Naming::Viewable.models + Naming::Form.models + %w[
|
27
33
|
UniqueKey
|
28
34
|
Setting
|
29
35
|
Rich::RichFile
|
30
|
-
Form::Row
|
31
36
|
]
|
32
37
|
end
|
33
38
|
export do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_admin_cms
|
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
|
- Patrice Lebel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
11
|
+
date: 2016-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|