fixed requires

This commit is contained in:
Torsten Ruger 2015-07-06 22:25:55 +03:00
parent aec78fedef
commit 275d2f05f5
2 changed files with 5 additions and 2 deletions

View File

@ -1,11 +1,12 @@
# By default Volt generates this controller for your Main component
if RUBY_PLATFORM == 'opal'
require "main/lib/game"
end
module Main
class MainController < Volt::ModelController
def index
require "main/lib/game"
Game.new()

View File

@ -1,4 +1,6 @@
require "opal-phaser"
class Score
attr_accessor :score
attr_reader :scoreText