Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

app.app_name is not set error at /padrino-cache/lib/padrino-cache.rb #725

Merged
merged 1 commit into from

2 participants

@modeverv

when I use Padrino::Cache,app.app_name is not set error at Padrino::registered.
please check.

@DAddYE DAddYE merged commit cdd343e into from
@DAddYE DAddYE referenced this pull request from a commit
@DAddYE DAddYE Ruby style on #725 0affca0
@agios agios referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  padrino-cache/lib/padrino-cache.rb
View
2  padrino-cache/lib/padrino-cache.rb
@@ -91,7 +91,7 @@ def registered(app)
app.helpers Padrino::Cache::Helpers::CacheStore
app.helpers Padrino::Cache::Helpers::Fragment
app.helpers Padrino::Cache::Helpers::Page
- app.set :cache, Padrino::Cache::Store::File.new(Padrino.root('tmp', app.app_name.to_s ,'cache'))
+ app.set :cache, Padrino::Cache::Store::File.new(Padrino.root('tmp', defined? app.app_name ? app.app_name.to_s : 'app_name' ,'cache'))
app.disable :caching
end
alias :included :registered
Something went wrong with that request. Please try again.