Created
November 19, 2008 18:45
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ActionView::Base.send :include, SavageBeast::AuthenticationSystem | |
ActionController::Base.send :include, SavageBeast::AuthenticationSystem | |
# Include your application configuration below | |
PASSWORD_SALT = '48e45be7d489cbb0ab582d26e2168621' unless Object.const_defined?(:PASSWORD_SALT) | |
Module.class_eval do | |
def expiring_attr_reader(method_name, value) | |
class_eval(<<-EOS, __FILE__, __LINE__) | |
def #{method_name} | |
class << self; attr_reader :#{method_name}; end | |
@#{method_name} = eval(%(#{value})) | |
end | |
EOS | |
end | |
end | |
begin | |
# require 'gettext/rails' | |
# GetText.locale = "en" # Change this to your preference language | |
#puts "GetText found!" | |
#rescue MissingSourceFile, LoadError | |
#puts "GetText not found. Using English." | |
class ActionView::Base | |
def _(s) | |
s | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment