No commit activity in last 3 years
No release in over 3 years
Sometimes its useful to know which cells depend on each other before you actually render them
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 2.0.0

Runtime

>= 3.5.0
 Project Readme

Cell Dependencies

This is little gemmy what let's you declare ahead of render-time what other cells a cell depends on.

Let's say you've got a hot banner that you put in all of your widgets

class BannerCell < Cell::Rails
    #... your banner is awesome, and does great stuff.
end

You can now declare in your other cells that they use this banner cell

class WeatherCell < Cell::Rails
  uses :banner
  #other great stuff...
end

and then query your cell to find out which cells it depends on

WeatherCell.dependencies #=> [BannerCell]

Dependencies are transitive

class BannerCell < Cell::Rails
  uses :logo
end

WeatherCell.dependencies #=> [BannerCell, LogoCell]