Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecated shared_templates_api #95

Merged
merged 3 commits into from
Jul 3, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions lib/haml_coffee_assets.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,4 @@
# its configuration settings.
#
module HamlCoffeeAssets
def self.helpers
GlobalContext.to_s
end
end
13 changes: 0 additions & 13 deletions lib/haml_coffee_assets/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -136,19 +136,6 @@ def initialize
#
attr_accessor :templates_path

# TODO: Remove this deprecated api
# @deprecated use {#templates_path} instead
def shared_template_path
warn "[DEPRECATION] `shared_template_path` is deprecated. Use `templates_path` instead."
templates_path
end

# @deprecated use {#templates_path=} instead
def shared_template_path=(value)
warn "[DEPRECATION] `shared_template_path=` is deprecated. Use `templates_path=` instead."
templates_path=(value)
end

# Path to custom helpers shared by Rails and JS.
#
attr_accessor :global_context_asset
Expand Down
8 changes: 0 additions & 8 deletions spec/haml_coffee_assets/haml_coffee_assets_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,4 @@
HamlCoffeeAssets.config.should be_an_instance_of ::HamlCoffeeAssets::Configuration
end
end

describe '.helpers' do
it "returns the global context from asset pipeline" do
HamlCoffeeAssets::GlobalContext.stub(:to_s) { "foo" }
helpers = HamlCoffeeAssets.helpers
helpers.should =~ /foo/
end
end
end