Sha256: bf2085a4959faaefe88d118219512c50ddb7f82d68ad5a954cbbd9132af49e8b
Contents?: true
Size: 481 Bytes
Versions: 1
Compression:
Stored size: 481 Bytes
Contents
module Bread module Controller extend ActiveSupport::Concern module ClassMethods attr_reader :bread_block def bread(&block) @bread_block = block end end def bread_keys cmd = ControllerLayoutCommand.new(self) cmd.instance_eval(&self.class.bread_block) cmd.keys end end end if defined? ActionController::Base ActionController::Base.class_eval do include Bread::Controller end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bread-0.0.4 | lib/bread/controller.rb |