Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Refactored default widget TTL as a setting

  • Loading branch information...
commit 4da6e8e940ea85ab9fb394cf5b66f80922709486 1 parent 0b9fefa
@dlozano authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  app/models/widget.rb
  2. +1 −1  rails/init.rb
View
2  app/models/widget.rb
@@ -4,7 +4,7 @@ class Widget < ActiveRecord::Base
INACCEPTABLE_OPTIONS = %w{options widget widget_id block block_id position}
WIDGET_TTL = {
- :default => 10.minutes
+ :default => Ubiquo::Settings[:ubiquo_design][:widget_ttl]
}
@@behaviours = {}
View
2  rails/init.rb
@@ -40,7 +40,7 @@
config.add :memcache, {:server => '127.0.0.1', :timeout => 0}
config.add :generic_models, []
config.add :block_type_for_static_section_widget, 'main'
-
+ config.add :widget_ttl, 10.minutes
end
groups = Ubiquo::Config.get :model_groups
Please sign in to comment.
Something went wrong with that request. Please try again.