Class: ActionView::AssetPaths

Inherits:
Object
  • Object
show all
Defined in:
lib/i18n/assets/sprockets.rb

Instance Method Summary collapse

Instance Method Details

#compute_public_path(source, dir, options = nil) ⇒ Object



127
128
129
130
# File 'lib/i18n/assets/sprockets.rb', line 127

def compute_public_path(source, dir, options = nil)
  source = prepend_locale(source) if local_resource?(source) && file_localizable?(source, options) && !file_already_localized?(source)
  compute_public_path_without_locale(source, dir, options)
end

#compute_public_path_without_localeObject



125
# File 'lib/i18n/assets/sprockets.rb', line 125

alias_method :compute_public_path_without_locale, :compute_public_path