Feature/ahn root #148

Merged
merged 5 commits into from May 24, 2012

Conversation

Projects
None yet
2 participants
Owner

lpradovera commented May 24, 2012

Added Adhearsion.root and Adhearsion.root, deprecated Adhearsion.ahn_root=, added Adhearsion.deprecated.

+ def root
+ Adhearsion.config[:platform].root
+ end
+
lib/adhearsion.rb
Adhearsion.config[:platform].root = path.nil? ? nil : File.expand_path(path)
end
+ def root
@benlangfeld

benlangfeld May 24, 2012

Owner

Can we add some API docs here?

lib/adhearsion.rb
@@ -37,16 +37,34 @@ module Adhearsion
class << self
- def ahn_root=(path)
+ def root=(path)
@benlangfeld

benlangfeld May 24, 2012

Owner

Can we add some API docs here?

lib/adhearsion.rb
+ # @deprecated Use #root= instead
+ #
+ def ahn_root=(path)
+ Adhearsion.deprecated("#Adhearsion.root=")

benlangfeld added a commit that referenced this pull request May 24, 2012

@benlangfeld benlangfeld merged commit b8d3714 into develop May 24, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment