Skip to content

Commit

Permalink
Using .config instead of .full_config, as full_config was occasionall…
Browse files Browse the repository at this point in the history
…y returning a hash of strings instead of a hash of symbols, whereas .config seems to not exhibit this behaviour.
  • Loading branch information
AJ Christensen authored and El Draper committed Jul 18, 2008
1 parent 75283c3 commit 2169ebf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/article.rb
Expand Up @@ -145,7 +145,7 @@ def get_archive_hash

private
def specific_date_function
if Merb::Orms::DataMapper.full_config[Merb.environment.to_s]["adapter"] == "sqlite3"
if Merb::Orms::DataMapper.config[:adapter] == "sqlite3"
"strftime('%Y', published_at) as year, strftime('%m', published_at) as month"
else
"extract(year from published_at) as year, extract(month from published_at) as month"
Expand Down

0 comments on commit 2169ebf

Please sign in to comment.