lalala 4.1.0.dev.316 → 4.1.0.dev.318
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 90d746cae3543059befc304bc0b773caf69df033
|
4
|
+
data.tar.gz: d9040701cc8bca4b4c48bdac5e9783b94c3749f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f142729c02d2e228a0bcf15507f9bfe4b01545881c9b672030b469af6e8ccc2e5fc126c8dcb059aab4178d792f0d2fb351d9679cbcb0260fed1ee6ecef84f56
|
7
|
+
data.tar.gz: 12eea2f56f1eb2cf465cd596c1d390a34e7b8075c2cfc39938d39932e929df2f29fe5ebef414a5504e60fdb3c63984259b04d175fecdbb72577242afefc521f8
|
data/lib/lalala/version.rb
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
class Article < ActiveRecord::Base
|
2
|
-
attr_accessible :body, :title, :category, :tag_ids
|
3
|
-
:images, :downloads, :poster_image
|
2
|
+
attr_accessible :body, :title, :category, :tag_ids
|
4
3
|
|
5
4
|
# Translations
|
6
5
|
translates :title, :body
|
@@ -9,9 +8,9 @@ class Article < ActiveRecord::Base
|
|
9
8
|
markdown :body
|
10
9
|
|
11
10
|
# Assets
|
12
|
-
has_one_asset :poster_image,
|
13
|
-
has_many_assets :images,
|
14
|
-
has_many_assets :downloads,
|
11
|
+
has_one_asset :poster_image, "images"
|
12
|
+
has_many_assets :images, "images"
|
13
|
+
has_many_assets :downloads, "downloads"
|
15
14
|
|
16
15
|
# Validations
|
17
16
|
validates :title, presence: true
|
@@ -5,7 +5,7 @@ class ApplicationPage < Lalala::Page
|
|
5
5
|
# translates :body
|
6
6
|
|
7
7
|
# All page associations should be placed here:
|
8
|
-
has_many_assets :images,
|
8
|
+
has_many_assets :images, "images"
|
9
9
|
|
10
10
|
markdown :body, tables: true, link_schemes: {
|
11
11
|
"youtube" => Lalala::Markdown::Handlers::YouTube.new(width: 520, height: 292),
|
data/test/dummy/config/routes.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lalala
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.1.0.dev.
|
4
|
+
version: 4.1.0.dev.318
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simon Menke
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2014-03-
|
16
|
+
date: 2014-03-07 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: activeadmin
|
@@ -1504,6 +1504,7 @@ files:
|
|
1504
1504
|
- test/dummy/app/pages/media_page.rb
|
1505
1505
|
- test/dummy/app/views/admin/_stats.html.erb
|
1506
1506
|
- test/dummy/app/views/layouts/application.html.erb
|
1507
|
+
- test/dummy/app/views/pages/articles.html.erb
|
1507
1508
|
- test/dummy/app/views/pages/media.html.erb
|
1508
1509
|
- test/dummy/config.ru
|
1509
1510
|
- test/dummy/config/application.rb
|
@@ -1607,6 +1608,7 @@ test_files:
|
|
1607
1608
|
- test/dummy/app/pages/media_page.rb
|
1608
1609
|
- test/dummy/app/views/admin/_stats.html.erb
|
1609
1610
|
- test/dummy/app/views/layouts/application.html.erb
|
1611
|
+
- test/dummy/app/views/pages/articles.html.erb
|
1610
1612
|
- test/dummy/app/views/pages/media.html.erb
|
1611
1613
|
- test/dummy/config.ru
|
1612
1614
|
- test/dummy/config/application.rb
|