Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove all the url config we now don't need
- Loading branch information
Showing
1 changed file
with
0 additions
and
26 deletions.
There are no files selected for viewing
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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,32 +1,6 @@ | |||
module Whereuat | module Whereuat | ||
|
|||
class Configuration | class Configuration | ||
attr_accessor :pivotal_tracker_token | attr_accessor :pivotal_tracker_token | ||
attr_accessor :pivotal_tracker_project | attr_accessor :pivotal_tracker_project | ||
|
|||
attr_accessor :whereuat_stylesheet_url | |||
attr_accessor :whereuat_javascript_url | |||
|
|||
def initialize | |||
if Whereuat.assets_path.directory? | |||
use_internal_resources! | |||
else | |||
use_github_resources! | |||
end | |||
end | |||
|
|||
def use_github_resources! | |||
puts "using github resources" | |||
self.whereuat_stylesheet_url = "http://github.com/plus2/whereuat/raw/master/lib/whereuat/stylesheets/whereuat.css" | |||
self.whereuat_javascript_url = "http://github.com/plus2/whereuat/raw/master/lib/whereuat/javascript/whereuat.js" | |||
end | |||
|
|||
def use_internal_resources! | |||
puts "using internal resources" | |||
self.whereuat_stylesheet_url = "/whereuat/whereuat.css" | |||
self.whereuat_javascript_url = "/whereuat/whereuat.js" | |||
end | |||
alias :use_dev_resources! :use_internal_resources! | |||
end | end | ||
|
|||
end | end |