brightcontent-core 2.4.3 → 2.4.4

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: c8acdd49c21679b899f1c8ee2359f9fb86936ac0
4
- data.tar.gz: 4b6e049150634a10758714f7d263d4f7349e07a0
3
+ metadata.gz: eb5aa3651563a35dd7d6ec92a187c0cbb560f970
4
+ data.tar.gz: bb3d0d9ae15600bf232c84aa04131865e3dc3953
5
5
  SHA512:
6
- metadata.gz: b6005aa4c644aa33ec2ef64b1293d7abc9f0e0fba42e1238774f636e1a343c17bf9e5dc9c7c2d13d727036532caa3a2dfd5592c7c093fb8d0b192ec2d9bd9770
7
- data.tar.gz: 0fc25f1c9a94782e831a5094e3b708be1ec705eedcf25076371c203eb7ac1d9d27634e2f524e14589c43abdb4f25157ca3cfad848842f4b1bd12a3a8938c3e16
6
+ metadata.gz: bd65e3d1de7ac2d7acc27015e52080f25dcec6afbfcf1943f972585666e3a155a1e90deff269ccb7752102a7943e6d6461e5e6f1f7b97558ba74d60b82017e0a
7
+ data.tar.gz: de69e4ff21e2a02db945212ae3e6831196649a7aa95af0d17f87a37a5283832d4a06262fe0e26dc0a54716a99b158bedff05c6370da6f656b0123477fcbd41d5
@@ -11,7 +11,7 @@ $(function() {
11
11
  parserRules: wysihtml5ParserRules,
12
12
  events: {
13
13
  load: function() {
14
- var editor = $("#insertable").data("wysihtml5").editor;
14
+ var editor = $('[data-wysihtml5]').first().data('wysihtml5');
15
15
  editor.focus();
16
16
  }
17
17
  }
@@ -12,7 +12,7 @@ module Brightcontent
12
12
  end
13
13
 
14
14
  def base_collection
15
- instance_variable_get :"@#{resource_name.pluralize}"
15
+ instance_variable_get :"@#{resource_collection_name}"
16
16
  end
17
17
 
18
18
  def collection
@@ -20,7 +20,7 @@ module Brightcontent
20
20
  end
21
21
 
22
22
  def collection=(val)
23
- instance_variable_set :"@#{resource_name.pluralize}", val
23
+ instance_variable_set :"@#{resource_collection_name}", val
24
24
  end
25
25
 
26
26
  def resource
@@ -35,12 +35,12 @@ module Brightcontent
35
35
  controller_name.classify.constantize
36
36
  end
37
37
 
38
- def resource_name
39
- resource_class.model_name.plural
38
+ def resource_instance_name
39
+ resource_class.model_name.param_key
40
40
  end
41
41
 
42
- def resource_instance_name
43
- resource_class.model_name.singular
42
+ def resource_collection_name
43
+ resource_instance_name.pluralize
44
44
  end
45
45
 
46
46
  def resource_human_name(options = {})
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brightcontent-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.3
4
+ version: 2.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Developers at Brightin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-31 00:00:00.000000000 Z
11
+ date: 2016-09-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails