Sha256: 6bb743b398caef5ea74cb932d259a82538e0e31ad7ca300d9d1cf0c4b2ff2557

Contents?: true

Size: 320 Bytes

Versions: 16

Compression:

Stored size: 320 Bytes

Contents

module MightyGrid

  module Controller

    protected

    attr_accessor :mighty_grid_instances

    def init_grid(klass, opts={})
      cg = MightyGrid::Base.new(klass, self, opts)
      self.mighty_grid_instances = [] if self.mighty_grid_instances.nil?
      self.mighty_grid_instances << cg
      cg
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
mighty_grid-0.6.0 lib/mighty_grid/mighty_grid_controller.rb
mighty_grid-0.5.0 lib/mighty_grid/mighty_grid_controller.rb
mighty_grid-0.4.0 lib/mighty_grid/mighty_grid_controller.rb
mighty_grid-0.3.3 lib/mighty_grid/mighty_grid_controller.rb
mighty_grid-0.3.2 lib/mighty_grid/mighty_grid_controller.rb
mighty_grid-0.3.1 lib/mighty_grid/mighty_grid_controller.rb
mighty_grid-0.3.0 lib/mighty_grid/mighty_grid_controller.rb
mighty_grid-0.2.2 lib/mighty_grid/mighty_grid_controller.rb
mighty_grid-0.2.1 lib/mighty_grid/mighty_grid_controller.rb
mighty_grid-0.2.0 lib/mighty_grid/mighty_grid_controller.rb
mighty_grid-0.1.0 lib/mighty_grid/mighty_grid_controller.rb
mighty_grid-0.0.6 lib/mighty_grid/mighty_grid_controller.rb
mighty_grid-0.0.5 lib/mighty_grid/mighty_grid_controller.rb
mighty_grid-0.0.4 lib/mighty_grid/mighty_grid_controller.rb
mighty_grid-0.0.3 lib/mighty_grid/mighty_grid_controller.rb
mighty_grid-0.0.2 lib/mighty_grid/mighty_grid_controller.rb