Class: Cms::Redirect

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

Class Method Summary collapse

Methods included from DefaultAccessible

non_permitted_params, permitted_params

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