Skip to content

Commit

Permalink
tronprint is not in the footer, so let apps require it separately
Browse files Browse the repository at this point in the history
  • Loading branch information
seamusabshere committed Mar 14, 2012
1 parent 30c06dc commit 5e43737
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 13 deletions.
1 change: 0 additions & 1 deletion brighter_planet_layout.gemspec
Expand Up @@ -19,6 +19,5 @@ Gem::Specification.new do |s|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]

s.add_dependency 'tronprint', '>=1.2.0'
s.add_development_dependency 'test-unit'
end
1 change: 0 additions & 1 deletion lib/brighter_planet_layout.rb
@@ -1,6 +1,5 @@
require 'fileutils'
require 'singleton'
#require 'tronprint'
require 'brighter_planet_metadata'

require 'brighter_planet_layout/version'
Expand Down
2 changes: 0 additions & 2 deletions lib/brighter_planet_layout/rails.rb
@@ -1,11 +1,9 @@
if defined? ::Rails and ::Rails::VERSION::MAJOR == 2
require 'brighter_planet_layout'
require 'tronprint/rails/tronprint_helper'
require ::BrighterPlanet.layout.helper_file

::Rails.configuration.to_prepare do
::ApplicationController.helper ::BrighterPlanetHelper
::ApplicationController.helper ::TronprintHelper
# sabshere 7/29/10 this makes it impossible to apply selectively
# ::ApplicationController.layout 'brighter_planet'
# sabshere 7/29/10 the view path appears to be magically appended
Expand Down
2 changes: 0 additions & 2 deletions lib/brighter_planet_layout/railtie.rb
Expand Up @@ -19,9 +19,7 @@ class Railtie < ::Rails::Railtie
end
config.to_prepare do
require ::BrighterPlanet.layout.helper_file
require 'tronprint/rails/tronprint_helper'
::ApplicationController.helper ::BrighterPlanetHelper
::ApplicationController.helper ::TronprintHelper
::ApplicationController.layout 'brighter_planet'
end
end
Expand Down
6 changes: 0 additions & 6 deletions public/stylesheets/brighter_planet.css
Expand Up @@ -751,9 +751,3 @@ ul.pages li a:hover {
-webkit-border-radius: 3px;
border-radius: 3px;
}

.tronprint-footprint {
margin-top: 15px !important;
font-size: 12px !important;
color: #555 !important;
}
1 change: 0 additions & 1 deletion test/dummy/app/controllers/application_controller.rb
@@ -1,4 +1,3 @@
class ApplicationController < ActionController::Base
helper TronprintHelper
protect_from_forgery
end

0 comments on commit 5e43737

Please sign in to comment.