i18n_rails_helpers 1.4.4 → 1.4.5

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.
@@ -1,13 +1,17 @@
1
1
  module BootstrapHelper
2
- def boot_page_title(action_or_title = nil, model = nil)
3
- if action_or_title.is_a? String
4
- title = action_or_title
2
+ def boot_page_title(action_or_title = nil, model = nil, &block)
3
+ if block_given?
4
+ title = capture(&block)
5
5
  else
6
- action = action_or_title || action_name
7
- if action.to_s == 'show' && defined?(resource) && resource.present?
8
- title = resource.to_s
6
+ if action_or_title.is_a? String
7
+ title = action_or_title
9
8
  else
10
- title = t_title(action, model)
9
+ action = action_or_title || action_name
10
+ if action.to_s == 'show' && defined?(resource) && resource.present?
11
+ title = resource.to_s
12
+ else
13
+ title = t_title(action, model)
14
+ end
11
15
  end
12
16
  end
13
17
 
@@ -1,3 +1,3 @@
1
1
  module I18nRailsHelpers
2
- VERSION = "1.4.4"
2
+ VERSION = "1.4.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: i18n_rails_helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.4
4
+ version: 1.4.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: