Class: Cms::Redirect

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/cms/redirect.rb

Class Method Summary collapse

Class Method Details

.from(path) ⇒ Object



6
7
8
# File 'app/models/cms/redirect.rb', line 6

def self.from(path)
  where(:from_path => path).first
end