tramway-core 1.18.3.1 → 1.18.3.2
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 +4 -4
- data/README.md +18 -2
- data/lib/tramway/core/version.rb +1 -1
- metadata +4 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4642075ecb6eb14dd53a6c0c34da6089ca1e8ffac92baee5e750c8d3ca215c9
|
4
|
+
data.tar.gz: 496474d5bdb285a300f1d8877da45d68743b4527c4a1974915395406a798cd6a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d0b406d85678d22316cef99327f517c3d9ee709519458a233ae9bacaac22a8a22afdea28a28379bcc37e2e81d2a841f862aff216531d066272e37612dff9365
|
7
|
+
data.tar.gz: f4fd66bbbecd7bea23b934208fc7b8e721e4bd9054bf5f67946be29eaa17cd854a25d0b303b5f792f388ebd137c70e48e60b5f9a4d00ed24eb9cb1bb5876f81a
|
data/README.md
CHANGED
@@ -177,7 +177,23 @@ Something like this:
|
|
177
177
|
copy_to_clipboard "some_id" # some_id is HTML id of element. Content of this element will be copied to the clipboard after pressing the button
|
178
178
|
```
|
179
179
|
|
180
|
-
|
180
|
+
# Every Tramway application need initialized @application object (or if you create Tramway plugin, it should be @application_engine object).
|
181
|
+
|
182
|
+
You don't need to initialize this object yourself, just configurate application with Tramway. You have **2** options of this:
|
183
|
+
|
184
|
+
## Option 1. If you want to change @application object just in the code base.
|
185
|
+
|
186
|
+
```shell
|
187
|
+
rails g tramway:core:application
|
188
|
+
```
|
189
|
+
|
190
|
+
*config/initializers/tramway.rb*
|
191
|
+
|
192
|
+
```ruby
|
193
|
+
Tramway::Core.initialize_application name: :your_application_name
|
194
|
+
```
|
195
|
+
|
196
|
+
## Option 2. If you want to change @application object from admin panel. How to create model that will be an Application Model for the Tramway
|
181
197
|
|
182
198
|
#### 1. Generate model that you to use. We create Organization, for example
|
183
199
|
|
@@ -196,7 +212,7 @@ Tramway::Core.initialize_application model_class: Organization
|
|
196
212
|
|
197
213
|
```ruby
|
198
214
|
rails c
|
199
|
-
Organization.create! public_name: 'Tramway', name: :organization, tagline: 'Tramway is not buggy, LOL!'
|
215
|
+
Organization.create! public_name: 'Tramway', name: :organization, tagline: 'Tramway is not buggy, LOL!', main_image: 'https://raw.githubusercontent.com/ulmic/tramway-dev/develop/logo.png'
|
200
216
|
```
|
201
217
|
|
202
218
|
#### 4. Add model to singleton to the `tramway-admin` admin panel to be able to change its data
|
data/lib/tramway/core/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tramway-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.18.3.
|
4
|
+
version: 1.18.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavel Kalashnikov
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2020-
|
12
|
+
date: 2020-07-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: audited
|
@@ -119,22 +119,16 @@ dependencies:
|
|
119
119
|
name: haml-rails
|
120
120
|
requirement: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- - "~>"
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: '1.0'
|
125
122
|
- - ">="
|
126
123
|
- !ruby/object:Gem::Version
|
127
|
-
version:
|
124
|
+
version: '0'
|
128
125
|
type: :runtime
|
129
126
|
prerelease: false
|
130
127
|
version_requirements: !ruby/object:Gem::Requirement
|
131
128
|
requirements:
|
132
|
-
- - "~>"
|
133
|
-
- !ruby/object:Gem::Version
|
134
|
-
version: '1.0'
|
135
129
|
- - ">="
|
136
130
|
- !ruby/object:Gem::Version
|
137
|
-
version:
|
131
|
+
version: '0'
|
138
132
|
- !ruby/object:Gem::Dependency
|
139
133
|
name: kaminari
|
140
134
|
requirement: !ruby/object:Gem::Requirement
|