File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,9 +12,11 @@ module ConfigurationMethods
1212 #
1313 # Config file is in +config/alchemy/config.yml+
1414 #
15+ # @deprecated - Use Alchemy.config.get instead
1516 def configuration ( name )
1617 Alchemy . config . get ( name )
1718 end
19+ deprecate configuration : "Alchemy.config.get" , deprecator : Alchemy ::Deprecation
1820
1921 # Returns true if more than one language is published on current site.
2022 #
Original file line number Diff line number Diff line change @@ -29,8 +29,10 @@ module Alchemy
2929
3030 describe "#configuration" do
3131 it "returns certain configuration options" do
32- allow ( Alchemy . config ) . to receive ( :some_option ) . and_return ( true )
33- expect ( controller . configuration ( :some_option ) ) . to eq ( true )
32+ Deprecation . silenced do
33+ allow ( Alchemy . config ) . to receive ( :some_option ) . and_return ( true )
34+ expect ( controller . configuration ( :some_option ) ) . to eq ( true )
35+ end
3436 end
3537 end
3638
You can’t perform that action at this time.
0 commit comments