application.rb 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. require File.expand_path('../boot', __FILE__)
  2. require 'rails/all'
  3. require 'sprockets/railtie'
  4. # Require the gems listed in Gemfile, including any gems
  5. # you've limited to :test, :development, or :production.
  6. Bundler.require(*Rails.groups)
  7. module Pos
  8. class Application < Rails::Application
  9. # Settings in config/environments/* take precedence over those specified here.
  10. # Application configuration should go into files in config/initializers
  11. # -- all .rb files in that directory are automatically loaded.
  12. # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
  13. # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
  14. # config.time_zone = 'Central Time (US & Canada)'
  15. # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
  16. # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
  17. # config.i18n.default_locale = :de
  18. # Do not swallow errors in after_commit/after_rollback callbacks.
  19. config.exceptions_app = self.routes
  20. config.action_view.embed_authenticity_token_in_remote_forms = true
  21. config.active_record.raise_in_transactional_callbacks = true
  22. config.usertypes_for_super = {
  23. "Super Administrador" => "SS",
  24. "Administrador" => "A",
  25. "Almacenista" => "S",
  26. "Caja" => "C",
  27. "Gerente" => "G"
  28. }
  29. config.usertypes_for_admin = {
  30. "Administrador" => "A",
  31. "Almacenista" => "S",
  32. "Caja" => "C",
  33. "Gerente" => "G"
  34. }
  35. config.usertypes_for_manager = {
  36. "Almacenista" => "S",
  37. "Caja" => "C"
  38. }
  39. config.support_mails = [
  40. "daniel.mendoza@sml.mx"
  41. ]
  42. end
  43. end