tramway-core 1.8.3 → 1.8.4

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: e3e9f5d7647d1fada591aa581d40a2191d0aa8ca956702afc98d25f1586de7ff
4
- data.tar.gz: e169af611b88de678c6a50a93c10b636ffcf451fe3220bcf5ee93581b3732396
3
+ metadata.gz: 98dbd154533c8e30806159b1d51132a37a9ccc452deccb9178388c2163fea914
4
+ data.tar.gz: 8c0eef4b25553aa30d041d8d88072aa1984a5fbb461f928df68113654df01733
5
5
  SHA512:
6
- metadata.gz: 240cce16b3631bd462eb01532856977e5c0fc230a4af4ffd945131f19a1ce947b90e0b886d3f8f98cd533684b50865ec5ea1795537cbd2532fcc93bc9c85bd26
7
- data.tar.gz: 4d9762d9c7391bbb637dabe89a0f70cbdf570a43d56c0d234c6ddb0267a8f318acc468d5a5faf701bc3ef818a79deecb0d314727dea3fef1112c124bc03c9787
6
+ metadata.gz: 1e7f6cfefc23d088945b98820e75a39f7921ae2bc974ce7529645664251701fd146b244ff500097016ea43e157869aaead0383d7a3ddd7216516aa555f551ff0
7
+ data.tar.gz: 445937d0330c0369fef23d661482d924a3ad1f3415c64737fe2ddd6fedd1290c68aa71337969f2f68e99367622591cc84aad7e261236e0eebc14da7f53a31dc9
@@ -3,7 +3,7 @@ module Tramway
3
3
  module TitleHelper
4
4
  def title(page_title = default_title)
5
5
  if @application.present?
6
- title_text = "#{page_title} | #{@application.title}"
6
+ title_text = "#{page_title} | #{@application.try(:title) || @application.name}"
7
7
  content_for(:title) { title_text }
8
8
  else
9
9
  error = Tramway::Error.new(plugin: :core, method: :title, message: ('You should set Tramway::Core::Application class using `::Tramway::Core.initialize_application model_class: #{model_class_name}` in config/initializers/tramway.rb'))
@@ -1,5 +1,5 @@
1
1
  module Tramway
2
2
  module Core
3
- VERSION = '1.8.3'
3
+ VERSION = '1.8.4'
4
4
  end
5
5
  end
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.8.3
4
+ version: 1.8.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov