Sha256: fd723b11b14ec70cfc516af23442e775d54153efa17933765f89f69bfbd086fe

Contents?: true

Size: 445 Bytes

Versions: 2

Compression:

Stored size: 445 Bytes

Contents

module ActionController
  class Base
    
    # Error messages modified in lang file
    @@resources_path_names.update ({ 
      :new => :resources_path_new.l('new') , 
      :edit => :resources_path_edit.l('edit')
    })
    
    # Reloads the localization
    def self.relocalize
      @@resources_path_names.update ({ 
        :new => :resources_path_new.l('new') , 
        :edit => :resources_path_edit.l('edit')
      })
    end
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
mattetti-globalite-0.5.1 lib/rails/localized_action_controller.rb
morhekil-globalite-0.5.1 lib/rails/localized_action_controller.rb