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 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.



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

def root=(value)
  @root = value
end

Class Method Details

.factory_pathsObject



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

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

.rootObject



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

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