Sha256: 280f351e91ff8781bae467a76593e78c4e2e94af2274679682c93f4c68a53dde

Contents?: true

Size: 456 Bytes

Versions: 2

Compression:

Stored size: 456 Bytes

Contents

module RemoteI18n
  module Integration
    
    autoload :Rails3,  'remote_i18n/integration/rails3'
    
    def self.setup
      setup_rails   if defined?(Rails)
      setup_sinatra if defined?(::Sinatra)
    end
    
    def self.setup_rails
      case Rails::VERSION::MAJOR
      when 3
        Rails3
      when 2
        throw "Not supported yet"
      end
    end
    
    def self.setup_sinatra
      throw "Not supported yet"
    end
    
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
remote_i18n-0.1.1 lib/remote_i18n/integration.rb
remote_i18n-0.1.0 lib/remote_i18n/integration.rb