tramway-profiles 1.4.1.1 → 1.4.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f20cccb37ed1194698aae5a907d6273ef4731a07e7ca5f6b5808a2fc55a28014
4
- data.tar.gz: 99e84ce72d79eb6b3980e7def97ab69fad085a189be842c8b99bed84b4fff1bc
3
+ metadata.gz: 9f5df1b1b4ebf06cbeb39090cff9e46d0f14848649b7c2357c20519ceec3cecf
4
+ data.tar.gz: ed7809f4fb7d7c47bc8fb47332e6101f1dbdddd07fe9a0df89e7e9a4a469d49d
5
5
  SHA512:
6
- metadata.gz: 01b4d1f5078c0e38c3d767b3beedaad9785f178b1c5b2d2b23bcb7e437dfad7ba60c5a89c8ce9724825355603ebf8302c7b57a10665b371ab24c0e4fc0b5dbfc
7
- data.tar.gz: ea7d3887efc89026a79722629f7863102cdb1967fbb5c286e06748a901015b0c135b13706423b2028ecb3fd5f8b0a4100fd3641dbb5e739746792a3a940817cf
6
+ metadata.gz: 468380c7cc72216a9abe722f119423bdc6036ec300efea3e868d8eee55cd7e72b2f2d3853c5e88e6664251b1435345439b75ab8ef7e10790b2392827b1861bdb
7
+ data.tar.gz: 06c31fb07d0ed0cc73226d0d01b2905fad85e0b6b61d8e204551763967d72bb7dc887627a4ba1a0c9243c16b7a26ef8eb163c3ad61c1b66d61145294040d6937
data/README.md CHANGED
@@ -24,10 +24,10 @@ rails db:migrate
24
24
  *app/initializers/tramway.rb*
25
25
 
26
26
  ```ruby
27
- ::Tramway::Admin.set_available_models(::Tramway::Profiles::SocialNetwork, project: :your_project_name)
27
+ ::Tramway.set_available_models(::Tramway::Profiles::SocialNetwork, project: :your_project_name)
28
28
  ```
29
29
 
30
- #### 5. Now you have SocialNetwork objects in your project, that associated with [Tramway::Core.application](https://github.com/ulmic/tramway-dev/tree/develop/tramway-core#how-to-create-model-that-will-be-an-application-model-for-the-tramway) by default
30
+ #### 5. Now you have SocialNetwork objects in your project, that associated with [Tramway.application](https://github.com/ulmic/tramway-dev/tree/develop/tramway#how-to-create-model-that-will-be-an-application-model-for-the-tramway) by default
31
31
 
32
32
  ## Usage. English
33
33
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class ::Tramway::Profiles::SocialNetworkDecorator < ::Tramway::Core::ApplicationDecorator
3
+ class ::Tramway::Profiles::SocialNetworkDecorator < ::Tramway::ApplicationDecorator
4
4
  class << self
5
5
  def collections
6
6
  [:all]
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class Admin::Tramway::Profiles::SocialNetworkForm < ::Tramway::Core::ApplicationForm
3
+ class Admin::Tramway::Profiles::SocialNetworkForm < ::Tramway::ApplicationForm
4
4
  properties :title, :network_name, :uid, :record_id, :record_type
5
5
 
6
6
  association :record
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class Tramway::Profiles::SocialNetwork < ::Tramway::Core::ApplicationRecord
3
+ class Tramway::Profiles::SocialNetwork < Tramway::ApplicationRecord
4
4
  belongs_to :record, polymorphic: true, required: false
5
5
 
6
6
  enumerize :network_name, in: %i[vk facebook twitter instagram telegram patreon]
@@ -1,3 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- ::Tramway::Admin.set_available_models(::Tramway::Profiles::SocialNetwork, project: :profiles)
3
+ Rails.application.config.after_initialize do
4
+ Tramway.set_available_models(Tramway::Profiles::SocialNetwork, project: :profiles)
5
+ end
@@ -1,10 +1,10 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'rails/generators'
4
- require 'tramway/core/generators/install_generator'
4
+ require 'tramway/generators/install_generator'
5
5
 
6
6
  module Tramway::Profiles::Generators
7
- class InstallGenerator < ::Tramway::Core::Generators::InstallGenerator
7
+ class InstallGenerator < ::Tramway::Generators::InstallGenerator
8
8
  include Rails::Generators::Migration
9
9
  source_root File.expand_path('templates', __dir__)
10
10
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Profiles
5
- VERSION = '1.4.1.1'
5
+ VERSION = '1.4.1.3'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-profiles
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1.1
4
+ version: 1.4.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-08 00:00:00.000000000 Z
11
+ date: 2023-01-30 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Rails engine for social networks profiles
14
14
  email:
@@ -59,7 +59,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
59
59
  - !ruby/object:Gem::Version
60
60
  version: '0'
61
61
  requirements: []
62
- rubygems_version: 3.1.2
62
+ rubygems_version: 3.1.6
63
63
  signing_key:
64
64
  specification_version: 4
65
65
  summary: Rails engine for social networks profiles