Module: Refinery::Slideshow

Defined in:
lib/refinery/slideshow.rb,
lib/refinery/slideshow/engine.rb,
app/models/refinery/slideshow/slide.rb,
app/controllers/refinery/slideshow/admin/slides_controller.rb,
app/controllers/refinery/slideshow/admin/slideshows_controller.rb

Defined Under Namespace

Modules: Admin, Concerns Classes: Engine, Slide, Slideshow

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#root=(value) ⇒ Object (writeonly)

Sets the attribute root

Parameters:

  • value

    the value to set the attribute root to.



8
9
10
# File 'lib/refinery/slideshow.rb', line 8

def root=(value)
  @root = value
end

Class Method Details

.factory_pathsObject



15
16
17
# File 'lib/refinery/slideshow.rb', line 15

def factory_paths
  @factory_paths ||= [ root.join("spec/factories").to_s ]
end

.rootObject



11
12
13
# File 'lib/refinery/slideshow.rb', line 11

def root
  @root ||= Pathname.new(File.expand_path('../../../', __FILE__))
end