Sha256: f2217274bc08212092f9c42220c6d4372c020cd895340075ac33aa63ecd651de
Contents?: true
Size: 457 Bytes
Versions: 6
Compression:
Stored size: 457 Bytes
Contents
module Chili module Overrides def self.included(base) base.send(:include, InstanceMethods) base.before_filter :activate_overrides end module InstanceMethods def activate_overrides Deface::Override.all.each do |o| engine = o.second.keys.first.camelcase.constantize override = o.second.first.second override.args[:disabled] = !engine.active?(self) end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems