Sha256: 7777ab6c4b5f0e280eb6e133eee22ecb663e268d048d2c9c75c3155cd9eb5eea
Contents?: true
Size: 403 Bytes
Versions: 1
Compression:
Stored size: 403 Bytes
Contents
module Livery module Controller extend ActiveSupport::Concern module ClassMethods def use_presenters! define_method "view_assigns" do @_presenters || {} end end end def present(hsh) @_presenters ||= {} hsh.each_with_object(@_presenters) do |(k, v), acc| acc[k] = Livery::Presenter.to_presenter(v) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
livery-0.1.0 | lib/livery/controller.rb |