Sha256: 78bd4e856df8cd853a3913d90fc5f13278d3a8e872c79c4e7ef966c9bc38aa93

Contents?: true

Size: 246 Bytes

Versions: 9

Compression:

Stored size: 246 Bytes

Contents

module Viewable
  class BlockPresenter < ViewablePresenter
    def render
      h.instance_variable_set :@cms_view_partial, m
      html = h.render m.partial_path
      h.instance_variable_set :@cms_view_partial, nil
      html
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rails_admin_cms-0.1.1 app/presenters/viewable/block_presenter.rb
rails_admin_cms-0.0.9 app/presenters/viewable/block_presenter.rb
rails_admin_cms-0.0.7 app/presenters/viewable/block_presenter.rb
rails_admin_cms-0.0.6 app/presenters/viewable/block_presenter.rb
rails_admin_cms-0.0.5 app/presenters/viewable/block_presenter.rb
rails_admin_cms-0.0.4 app/presenters/viewable/block_presenter.rb
rails_admin_cms-0.0.3 app/presenters/viewable/block_presenter.rb
rails_admin_cms-0.0.2 app/presenters/viewable/block_presenter.rb
rails_admin_cms-0.0.1 app/presenters/viewable/block_presenter.rb