express_admin 1.6.7 → 1.6.8

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: 1a316ca28a17d07d0cb8bdd06b0387bd2405e40d
4
- data.tar.gz: 1caf49f457f068e95037c57ed5c64f1b21d512fb
3
+ metadata.gz: 7f00a1edf85325683bacaa192ffc953375d0b385
4
+ data.tar.gz: 43faad11e056489cd1db18e336db502efc3a0934
5
5
  SHA512:
6
- metadata.gz: 59f9f013b1470ec36b44c1b2ef389494e0bcc427f999f09839a4136b9c2017ea452f89f9805225cb4825e5322dab8972d086f625e5b47084ec32bc5925e11908
7
- data.tar.gz: 11f4f3f574a53a2d1fe44a6accd38fba1a30ce2f90385c00259c75c348570d5257f9bca1999a5e075207ef78aaf33f76a5162899e0940e9160651d62ffc82f44
6
+ metadata.gz: c6c073b2433d4f6466ed61dc5e803258a0e6260c1f80d65057af1ac63056a3bd60cd931fbc4d98a03ac083d5ffe76e489304b6021a05987fcd70ecf95dd29df4
7
+ data.tar.gz: 2dcae116cefb0cfb4b04d414886ba8981df8c36c7e2f82024860f2d6969cc23a2a5a4fe0c7cfefdba7258984e48a4455615b08f620b12b8e804018fc9b5c78e4
@@ -1,5 +1,5 @@
1
1
  $ ->
2
- $('form').validate
2
+ $('form.validate').validate
3
3
  debug: true
4
4
  errorElement: 'span'
5
5
 
@@ -12,6 +12,10 @@ module ExpressAdmin
12
12
  has_option :only, 'Respects the order the attributes are listed in', type: :array
13
13
  has_option :show_timestamps, 'Set to true to show timestamps as labels'
14
14
 
15
+ before_build {
16
+ add_class 'validate'
17
+ }
18
+
15
19
  contains {
16
20
  # TODO: taken from express_form. should be inherited?
17
21
  div(style: 'display:none') {
@@ -75,6 +75,14 @@ module ExpressAdmin
75
75
  a.join().html_safe
76
76
  end
77
77
 
78
+ def include_theme_assets(theme_name)
79
+ current_module_path = current_module.to_s.underscore
80
+ theme_path = "#{current_module_path}/themes/#{theme_name}/application"
81
+ a = []
82
+ a << stylesheet_link_tag(theme_path)
83
+ a.join.html_safe
84
+ end
85
+
78
86
  def admin_menus
79
87
  menus = ExpressAdmin::Engine.all_addons.map do |engine|
80
88
  ExpressAdmin::Menu[engine.addon_name.to_s] rescue nil
@@ -1,3 +1,3 @@
1
1
  module ExpressAdmin
2
- VERSION = "1.6.7"
2
+ VERSION = "1.6.8"
3
3
  end
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: express_admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.7
4
+ version: 1.6.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Talcott Smith