Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions app/helpers/rails_i18n_manager/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ def custom_fields_for(*args, **options, &block)
fields_for(*args, options, &block)
end

ASSET_VERSION = `git show -s --format=%ci`.parameterize.freeze
def custom_asset_path(path)
"#{path}?v=#{Rails.env.development? ? Time.now.to_i : ASSET_VERSION}"
"#{path}?v=#{Rails.env.development? ? Time.now.to_i : RailsI18nManager::VERSION.gsub(".", "")}"
end

def breadcrumb_item(title, url=nil)
Expand Down
1 change: 1 addition & 0 deletions lib/rails_i18n_manager.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
require "rails_i18n_manager/engine"
require "rails_i18n_manager/config"
require "rails_i18n_manager/version"

module RailsI18nManager

Expand Down