releaf-core 1.0.8 → 1.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generators/dummy/templates/migrations/create_banner_groups.rb +12 -0
- data/lib/generators/dummy/templates/migrations/create_banner_pages.rb +11 -0
- data/lib/generators/dummy/templates/migrations/create_banners.rb +3 -3
- data/lib/generators/dummy/templates/migrations/create_home_pages.rb +0 -1
- data/lib/generators/dummy/templates/models/banner.rb +2 -2
- data/lib/generators/dummy/templates/models/banner_group.rb +8 -0
- data/lib/generators/dummy/templates/models/banner_page.rb +7 -0
- data/lib/generators/dummy/templates/models/home_page.rb +0 -3
- metadata +7 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 80038785fdfb4f3cd6953cf8e70884f177fb29fb
|
4
|
+
data.tar.gz: 515ceec9310d0ac7706ee4187bb5483fdcedf76e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f822a17bc731f947c6ac2a4810462cdf7f1c97ef70520da1ff28d6e285311835f73cc65a747c35234fce218d8d549c772af7fe4f25bcf2d13f56090469a41509
|
7
|
+
data.tar.gz: 47e38c8a88afbe0f7af83c596b074ec4e5511e8a6f1d8bdf361765b173c358174d70781fbfb67304d11a223675a2417818a76bb30c406dd183686204a4666827
|
@@ -1,10 +1,10 @@
|
|
1
1
|
class CreateBanners < ActiveRecord::Migration
|
2
2
|
def change
|
3
3
|
create_table :banners do |t|
|
4
|
-
t.integer :
|
5
|
-
t.
|
4
|
+
t.integer :banner_group_id
|
5
|
+
t.integer :item_position
|
6
|
+
t.string :image_uid
|
6
7
|
t.string :url
|
7
|
-
|
8
8
|
t.timestamps(null: false)
|
9
9
|
end
|
10
10
|
end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
class BannerPage < ActiveRecord::Base
|
2
|
+
acts_as_node
|
3
|
+
has_many :banner_groups, -> { order(:item_position) }, dependent: :destroy
|
4
|
+
accepts_nested_attributes_for :banner_groups, allow_destroy: true
|
5
|
+
dragonfly_accessor :top_banner
|
6
|
+
dragonfly_accessor :bottom_banner
|
7
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: releaf-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- CubeSystems
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -462,6 +462,8 @@ files:
|
|
462
462
|
- lib/generators/dummy/templates/controllers/text_pages_controller.rb
|
463
463
|
- lib/generators/dummy/templates/initializers/releaf.rb
|
464
464
|
- lib/generators/dummy/templates/migrations/create_authors.rb
|
465
|
+
- lib/generators/dummy/templates/migrations/create_banner_groups.rb
|
466
|
+
- lib/generators/dummy/templates/migrations/create_banner_pages.rb
|
465
467
|
- lib/generators/dummy/templates/migrations/create_banners.rb
|
466
468
|
- lib/generators/dummy/templates/migrations/create_book_sequels.rb
|
467
469
|
- lib/generators/dummy/templates/migrations/create_books.rb
|
@@ -474,6 +476,8 @@ files:
|
|
474
476
|
- lib/generators/dummy/templates/migrations/create_text_pages.rb
|
475
477
|
- lib/generators/dummy/templates/models/author.rb
|
476
478
|
- lib/generators/dummy/templates/models/banner.rb
|
479
|
+
- lib/generators/dummy/templates/models/banner_group.rb
|
480
|
+
- lib/generators/dummy/templates/models/banner_page.rb
|
477
481
|
- lib/generators/dummy/templates/models/book.rb
|
478
482
|
- lib/generators/dummy/templates/models/book_sequel.rb
|
479
483
|
- lib/generators/dummy/templates/models/bundle.rb
|
@@ -630,7 +634,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
630
634
|
version: '0'
|
631
635
|
requirements: []
|
632
636
|
rubyforge_project:
|
633
|
-
rubygems_version: 2.
|
637
|
+
rubygems_version: 2.6.10
|
634
638
|
signing_key:
|
635
639
|
specification_version: 4
|
636
640
|
summary: core gem for releaf
|