ecm_pictures2 2.1.2 → 2.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/ecm/pictures/picture.rb +8 -0
- data/app/models/ecm/pictures/picture_gallery.rb +1 -1
- data/config/locales/ecm.pictures.picture.de.yml +2 -0
- data/config/locales/ecm.pictures.picture.en.yml +2 -1
- data/config/locales/ecm.pictures.picture_gallery.de.yml +1 -1
- data/config/locales/ecm.pictures.picture_gallery.en.yml +1 -1
- data/lib/ecm/pictures/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: fff4595aa9c0cc54463c23fef0049beaa28d394c
|
4
|
+
data.tar.gz: 10c3f0bced0012ac8663159f61dc6341584e7910
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c94c2249e7e58e647458c678c6cbaa8c0b2580b68aac2b7c7bcfaa87c30ba5b6a24be4fa8aa587b625e983a81c84a74e7c0b00f15abc76b0e4422d69faa4f5b
|
7
|
+
data.tar.gz: 464f16e3086fd0d04f5517d217e9b591450ca1bde38454fbc7ed62c0f4b1ec361d5b5563cd6d8c8717611091ad33ce4337f2aafff91927b1798cba77560af937
|
@@ -42,6 +42,14 @@ class Ecm::Pictures::Picture < ActiveRecord::Base
|
|
42
42
|
inclusion: Ecm::Pictures::Configuration.markup_languages
|
43
43
|
validates :name, presence: true
|
44
44
|
|
45
|
+
def display_code_for_erb
|
46
|
+
display_code(:erb)
|
47
|
+
end
|
48
|
+
|
49
|
+
def display_code_for_textile
|
50
|
+
display_code(:textile)
|
51
|
+
end
|
52
|
+
|
45
53
|
def display_code(style)
|
46
54
|
case style
|
47
55
|
when :erb
|
@@ -9,7 +9,8 @@ en:
|
|
9
9
|
created_at: created at
|
10
10
|
description: description
|
11
11
|
display_code: display code
|
12
|
-
|
12
|
+
display_code_for_erb: display code (erb)
|
13
|
+
display_code_for_textile: display code (textile)
|
13
14
|
image_file: image
|
14
15
|
image_file_name: image filename
|
15
16
|
image_file_size: image size
|
data/lib/ecm/pictures/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ecm_pictures2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roberto Vasquez Angel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|