Guest User

Untitled

a guest
Feb 19th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.65 KB | None | 0 0
  1. # Be sure to restart your webserver when you modify this file.
  2.  
  3. # Uncomment below to force Rails into production mode
  4. # (Use only when you can't set environment variables through your web/app server)
  5. # ENV['RAILS_ENV'] = 'production'
  6.  
  7. # Bootstrap the Rails environment, frameworks, and default configuration
  8. require 'rubygems'
  9. require_gem 'RedCloth', "3.0.3"
  10.  
  11. require File.join(File.dirname(__FILE__), 'boot')
  12.  
  13. Rails::Initializer.run do |config|
  14. # Skip frameworks you're not going to use
  15. # config.frameworks -= [ :action_web_service, :action_mailer ]
  16.  
  17. # Add additional load paths for your own custom dirs
  18. # config.load_paths += %W( #{RAILS_ROOT}/app/services )
  19.  
  20. # Force all environments to use the same logger level
  21. # (by default production uses :info, the others :debug)
  22. # config.log_level = :debug
  23.  
  24. # Use the database for sessions instead of the file system
  25. # (create the session table with 'rake create_sessions_table')
  26. # config.action_controller.session_store = :active_record_store
  27.  
  28. # Enable page/fragment caching by setting a file-based store
  29. # (remember to create the caching directory and make it readable to the application)
  30. config.action_controller.fragment_cache_store = :file_store, "#{RAILS_ROOT}/tmp/cache"
  31.  
  32. # Activate observers that should always be running
  33. # config.active_record.observers = :cacher, :garbage_collector
  34. config.active_record.observers = :reservation_observer
  35.  
  36. # Make Active Record use UTC-base instead of local time
  37. # config.active_record.default_timezone = :utc
  38.  
  39. # Use Active Record's schema dumper instead of SQL when creating the test database
  40. # (enables use of different database adapters for development and test environments)
  41. # config.active_record.schema_format = :ruby
  42.  
  43. # See Rails::Configuration for more options
  44. end
  45.  
  46. # Add new inflection rules using the following format
  47. # (all these examples are active by default):
  48. # Inflector.inflections do |inflect|
  49. # inflect.plural /^(ox)$/i, '\1en'
  50. # inflect.singular /^(ox)en/i, '\1'
  51. # inflect.irregular 'person', 'people'
  52. # inflect.uncountable %w( fish sheep )
  53. # end
  54.  
  55. # Include your application configuration below
  56. ENV['TZ'] = 'EST5EDT'
  57. require 'gruff'
  58.  
  59. module Gruff
  60. class Base
  61. def theme_mcp
  62. reset_themes()
  63. # Colors
  64. @blue = '#6886B4'
  65. @yellow = '#FDD84E'
  66. @green = '#72AE6E'
  67. @red = '#D1695E'
  68. @purple = '#8A6EAF'
  69. @orange = '#EFAA43'
  70. @white = 'white'
  71. @colors = [@yellow, @blue, @green, @red, @purple, @orange, @white]
  72.  
  73. @marker_color = 'black'
  74.  
  75. @base_image = render_gradiated_background('white', 'white')
  76. end
  77. end
  78. end
Add Comment
Please, Sign In to add comment