tramway-event 1.9.19.3 → 1.9.19.4
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
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0b3c37884cc6992e4cca9072dfd5291721362248e7a35b28fcf02f5ad772c03a
|
|
4
|
+
data.tar.gz: f952f2148927880132074e906e70d0fbf4e985b592eb86e2b71ca0739c044405
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '09d330427bdf29586ef2f2f5ee9b711cd60d59fc0e3d9c53d39da8ccd2a6a3ff0aa8cc4e447282746defaf615233524ff78b5a93984fadd8c32545dad7f7e22f'
|
|
7
|
+
data.tar.gz: 20e4458f19b15581bf1e473a7e4752683d38f371dd4777b4a251de0e62af859cd01437613a0fd1d9f4d4d8764540c0624646ccaf8fcb3005111b4fb3c460c9dc
|
data/README.md
CHANGED
|
@@ -9,16 +9,30 @@ Add this line to your application's Gemfile:
|
|
|
9
9
|
|
|
10
10
|
```ruby
|
|
11
11
|
gem 'tramway-event'
|
|
12
|
+
gem 'carrierwave'
|
|
13
|
+
gem 'more_html_tags'
|
|
12
14
|
```
|
|
13
15
|
|
|
14
16
|
And then execute:
|
|
15
17
|
```bash
|
|
16
18
|
$ bundle
|
|
17
19
|
```
|
|
20
|
+
*Gemfile*
|
|
21
|
+
```ruby
|
|
22
|
+
gem 'tramway-event'
|
|
23
|
+
```
|
|
18
24
|
|
|
19
|
-
|
|
20
|
-
```
|
|
21
|
-
|
|
25
|
+
Then run:
|
|
26
|
+
```shell
|
|
27
|
+
rails g tramway:event:install
|
|
28
|
+
rails db:migrate
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Then make `tramway-landing` installation. [How-to](https://github.com/ulmic/tramway-dev/blob/develop/tramway-landing/README.md#installation)
|
|
32
|
+
|
|
33
|
+
*config/initializers/tramway.rb*
|
|
34
|
+
```ruby
|
|
35
|
+
Tramway::Admin.set_available_models ::Tramway::Event::Event, ::Tramway::Event::ParticipantFormField, ::Tramway::Event::Participant, project: #{project_which_you_used_in_the_application}
|
|
22
36
|
```
|
|
23
37
|
|
|
24
38
|
## Contributing
|
|
@@ -24,5 +24,7 @@ class Tramway::Event::Event < ::Tramway::Event::ApplicationRecord
|
|
|
24
24
|
return :are_being_right_now if request_collecting_begin_date&.past? && request_collecting_end_date&.future?
|
|
25
25
|
end
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
if defined? ::Tramway::Partner
|
|
28
|
+
include ::Tramway::Partner::Scopes
|
|
29
|
+
end
|
|
28
30
|
end
|