Sha256: e0b187e5210de843b562a9d8398ca58bb90f0aae89a5204d73d4b8c0b4d9527c

Contents?: true

Size: 379 Bytes

Versions: 12

Compression:

Stored size: 379 Bytes

Contents

if RUBY_ENGINE == 'opal'
  module React
    module Config
      extend self
      def environment=(value)
        raise "Environment cannot be configured at runtime."
      end

      def config
        hash = %x{
          Opal.hash({
            environment: <%= '"' + React::Config.config[:environment] + '"' %>
          })
        }
        hash
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
hyper-react-1.0.0.lap24 lib/react/config/client.rb.erb
hyper-react-1.0.0.lap23 lib/react/config/client.rb.erb
hyper-react-1.0.0.lap22 lib/react/config/client.rb.erb
hyper-react-1.0.0.lap21 lib/react/config/client.rb.erb
hyper-react-0.12.7 lib/react/config/client.rb.erb
hyper-react-0.12.6 lib/react/config/client.rb.erb
hyper-react-0.12.5 lib/react/config/client.rb.erb
hyper-react-0.12.4 lib/react/config/client.rb.erb
hyper-react-0.12.3 lib/react/config/client.rb.erb
hyper-react-0.12.2 lib/react/config/client.rb.erb
hyper-react-0.12.1 lib/react/config/client.rb.erb
hyper-react-0.12.0 lib/react/config/client.rb.erb