Sha256: a8265f0b979a158551fd710cf3a1c44ace094e4ca74e46a233037ddcbc06d131

Contents?: true

Size: 400 Bytes

Versions: 14

Compression:

Stored size: 400 Bytes

Contents

module Puffer
  class BaseCell < ::Cell::Rails

    build do
      self.class.to_s.gsub(/Controller$/, 'Cell').constantize rescue Puffer::BaseCell
    end

    helper_method :resource, :resource_session

    def additional
      render
    end

  private

    def resource
      parent_controller.resource
    end

    def resource_session
      parent_controller.resource_session
    end

  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
puffer-0.0.19 app/cells/puffer/base_cell.rb
puffer-0.0.18 app/cells/puffer/base_cell.rb
puffer-0.0.17 app/cells/puffer/base_cell.rb
puffer-0.0.16 app/cells/puffer/base_cell.rb
puffer-0.0.15 app/cells/puffer/base_cell.rb
puffer-0.0.14 app/cells/puffer/base_cell.rb
puffer-0.0.13 app/cells/puffer/base_cell.rb
puffer-0.0.12 app/cells/puffer/base_cell.rb
puffer-0.0.11 app/cells/puffer/base_cell.rb
puffer-0.0.10 app/cells/puffer/base_cell.rb
puffer-0.0.9 app/cells/puffer/base_cell.rb
puffer-0.0.8 app/cells/puffer/base_cell.rb
puffer-0.0.7 app/cells/puffer/base_cell.rb
puffer-0.0.6 app/cells/puffer/base_cell.rb