tramway-conference 1.9.5.4 → 1.9.5.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/tramway/conference/application.js +1 -1
- data/app/assets/stylesheets/tramway/conference/application.scss +1 -1
- data/app/controllers/tramway/conference/application_controller.rb +2 -2
- data/app/controllers/tramway/conference/web/welcome_controller.rb +2 -0
- data/app/decorators/tramway/conference/unity_decorator.rb +1 -1
- data/app/forms/admin/tramway/conference/unity_form.rb +1 -1
- data/app/models/tramway/conference/application_record.rb +1 -1
- data/app/models/tramway/conference/unity.rb +1 -1
- data/config/initializers/tramway.rb +5 -5
- data/config/routes.rb +1 -6
- data/lib/tramway/conference/engine.rb +1 -1
- data/lib/tramway/conference/generates/install_generator.rb +2 -2
- data/lib/tramway/conference/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 67c9db5456086addd4b356388edd285bdb1a9ad4c8c8da6b7b1695c4ef1160bc
|
4
|
+
data.tar.gz: e27e7440ecdd95b168ff2d8a47868faadd6980caec5f04f507166f9892bf1f2d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 832da9b7328622a9c583c0a971cd21c4f799f3ad10cb089610e7599e1faddd801e290c23144d03360a3d326fe24a37e09c9175e52431c1047ce4ff087aee864e
|
7
|
+
data.tar.gz: 31b5a621522d6341ee4d7104b41e713fe26758a96f1f2791244e854e6297a9fc7ba62f40488c89f2fcc71e1c85d708c18dcfcf801c0daca3f0f6a6eedc746c87
|
@@ -2,13 +2,13 @@
|
|
2
2
|
|
3
3
|
module Tramway
|
4
4
|
module Conference
|
5
|
-
class ApplicationController < ::
|
5
|
+
class ApplicationController < ActionController::Base
|
6
6
|
layout 'tramway/landing/application'
|
7
7
|
protect_from_forgery with: :exception
|
8
8
|
before_action :application
|
9
9
|
|
10
10
|
def application
|
11
|
-
@application = ::Tramway
|
11
|
+
@application = ::Tramway.application_object
|
12
12
|
end
|
13
13
|
end
|
14
14
|
end
|
@@ -4,6 +4,8 @@ require_dependency 'tramway/conference/application_controller'
|
|
4
4
|
|
5
5
|
class Tramway::Conference::Web::WelcomeController < ::Tramway::Conference::ApplicationController
|
6
6
|
def index
|
7
|
+
return unless ::Tramway::Conference::Unity.any?
|
8
|
+
|
7
9
|
@unity = ::Tramway::Conference::Unity.includes(:social_networks).first
|
8
10
|
@blocks = ::Tramway::Landing::BlockDecorator.decorate ::Tramway::Landing::Block.on_main_page
|
9
11
|
@news = ::Tramway::News::News.first(3).map { |t| ::Tramway::Landing::Cards::NewsDecorator.new t }
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
class Admin::Tramway::Conference::UnityForm < ::Tramway::
|
3
|
+
class Admin::Tramway::Conference::UnityForm < ::Tramway::ApplicationForm
|
4
4
|
properties :title, :tagline, :logo, :state, :phone, :address, :longtitude, :latitude, :url, :found_date, :email,
|
5
5
|
:favicon, :public_name
|
6
6
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
module Tramway::Conference
|
4
|
-
class Unity < ::Tramway::
|
4
|
+
class Unity < ::Tramway::ApplicationRecord
|
5
5
|
has_many :social_networks, as: :record, class_name: 'Tramway::Profiles::SocialNetwork'
|
6
6
|
|
7
7
|
include ::Tramway::Partner::Scopes
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
::Tramway
|
4
|
-
::Tramway
|
5
|
-
::Tramway
|
3
|
+
::Tramway.root_path_for Tramway::User => '/admin'
|
4
|
+
::Tramway.set_singleton_models ::Tramway::Conference::Unity, project: :conference
|
5
|
+
::Tramway.set_available_models(::Tramway::Event::Event,
|
6
6
|
::Tramway::Event::ParticipantFormField,
|
7
7
|
::Tramway::Event::Participant,
|
8
8
|
::Tramway::Event::Section,
|
@@ -10,10 +10,10 @@
|
|
10
10
|
::Tramway::Event::Partaking,
|
11
11
|
::Tramway::Event::Place,
|
12
12
|
::Tramway::Event::Action,
|
13
|
-
::Tramway::User
|
13
|
+
::Tramway::User,
|
14
14
|
::Tramway::Profiles::SocialNetwork,
|
15
15
|
project: :conference)
|
16
|
-
::Tramway
|
16
|
+
::Tramway.initialize_application model_class: ::Tramway::Conference::Unity
|
17
17
|
::Tramway::Landing.head_content = lambda do
|
18
18
|
concat stylesheet_link_tag 'tramway/conference/application', media: 'all'
|
19
19
|
concat javascript_include_tag 'tramway/conference/application'
|
data/config/routes.rb
CHANGED
@@ -1,15 +1,10 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
Tramway::Conference::Engine.routes.draw do
|
4
|
-
mount Tramway::
|
5
|
-
mount Tramway::Admin::Engine, at: '/admin'
|
4
|
+
mount Tramway::Engine, at: '/admin'
|
6
5
|
mount Tramway::News::Engine, at: '/'
|
7
6
|
mount Tramway::Event::Engine, at: '/'
|
8
7
|
mount Tramway::Page::Engine, at: '/page'
|
9
8
|
|
10
9
|
root to: 'web/welcome#index'
|
11
|
-
|
12
|
-
scope module: :web do
|
13
|
-
resource :session, only: %i[new create destroy]
|
14
|
-
end
|
15
10
|
end
|
@@ -7,7 +7,7 @@ module Tramway
|
|
7
7
|
module Conference
|
8
8
|
class Engine < ::Rails::Engine
|
9
9
|
isolate_namespace Tramway::Conference
|
10
|
-
::Tramway::Profiles.records = ['::Tramway::Conference::Unity', '::Tramway::User
|
10
|
+
::Tramway::Profiles.records = ['::Tramway::Conference::Unity', '::Tramway::User']
|
11
11
|
end
|
12
12
|
end
|
13
13
|
end
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'rails/generators'
|
4
|
-
require 'tramway/
|
4
|
+
require 'tramway/generators/install_generator'
|
5
5
|
|
6
6
|
module Tramway::Conference::Generators
|
7
|
-
class InstallGenerator < ::Tramway::
|
7
|
+
class InstallGenerator < ::Tramway::Generators::InstallGenerator
|
8
8
|
include Rails::Generators::Migration
|
9
9
|
source_root File.expand_path('templates', __dir__)
|
10
10
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tramway-conference
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.5.
|
4
|
+
version: 1.9.5.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitry Korotin
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2023-01-16 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Engine for Conference web sites
|
15
15
|
email:
|
@@ -76,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
76
76
|
- !ruby/object:Gem::Version
|
77
77
|
version: '0'
|
78
78
|
requirements: []
|
79
|
-
rubygems_version: 3.
|
79
|
+
rubygems_version: 3.4.1
|
80
80
|
signing_key:
|
81
81
|
specification_version: 4
|
82
82
|
summary: Engine for Conference web sites
|