Module: Refinery::Redirections

Includes:
ActiveSupport::Configurable
Defined in:
lib/refinery/redirections.rb,
lib/refinery/redirections/engine.rb,
lib/refinery/redirections/configuration.rb,
lib/refinery/redirections/routes_constraint.rb,
app/controllers/refinery/redirections/admin/redirections_controller.rb

Defined Under Namespace

Modules: Admin Classes: Engine, Redirection, RedirectionsController, RoutesConstraint

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.



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

def root=(value)
  @root = value
end

Class Method Details

.factory_pathsObject



22
23
24
# File 'lib/refinery/redirections.rb', line 22

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

.rootObject



18
19
20
# File 'lib/refinery/redirections.rb', line 18

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