Sha256: ea0572481d47eeda5191f219629f46437eed097c59fdb79ec0e9027ebf35b888
Contents?: true
Size: 321 Bytes
Versions: 3
Compression:
Stored size: 321 Bytes
Contents
module Songbooks module Controllers class Controller def template @template.to_sym end def layout (@layout || 'layouts/application').to_sym end def resulting_instance_variables instance_variables - [:@layout, :@params, :@template] end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
songbooks-0.1.2 | lib/songbooks/controllers/controller.rb |
songbooks-0.1.1 | lib/songbooks/controllers/controller.rb |
songbooks-0.1.0 | lib/songbooks/controllers/controller.rb |