Sha256: 97192aea200f5f252a71957704fc7b8e65ec70d046965ddd3625911c84a5f33c
Contents?: true
Size: 283 Bytes
Versions: 6
Compression:
Stored size: 283 Bytes
Contents
module Chili module Activatable def self.extended(base) base.send(:unloadable) if base.respond_to?(:unloadable) end def active_if(&block) @active_if = block end def active?(controller) controller.instance_eval(&@active_if) end end end
Version data entries
6 entries across 6 versions & 1 rubygems