module Refinery
Constants
- WINDOWS
Attributes
base_cache_key[RW]
gems[RW]
rescue_not_found[RW]
root[RW]
roots[RW]
s3_backend[RW]
Public Class Methods
deprecate(options = {})
click to toggle source
# File lib/base/refinery.rb, line 16 def deprecate(options = {}) # Build a warning. warning = "\n-- DEPRECATION WARNING --" warning << "\nThe use of '#{options[:what]}' is deprecated" warning << " and will be removed at version #{options[:when]}." if options[:when] warning << "\nPlease use #{options[:replacement]} instead." if options[:replacement] # See if we can trace where this happened if options[:caller] whos_calling = options[:caller].detect{|c| c =~ %r{#{Rails.root.to_s}}}.inspect.to_s.split(':in').first warning << "\nCalled from: #{whos_calling}\n" end # Give stern talking to. warn warning end
engines()
click to toggle source
# File lib/base/refinery.rb, line 33 def engines @engines ||= [] end
i18n_enabled?()
click to toggle source
# File lib/base/refinery.rb, line 37 def i18n_enabled? !!(defined?(::Refinery::I18n) && ::Refinery::I18n.enabled?) end
version()
click to toggle source
# File lib/base/refinery.rb, line 63 def version ::Refinery::Version.to_s end