Method: PUNK::ShowUserAction#validate
- Defined in:
- lib/punk/actions/users/show.rb
#validate ⇒ Object
7 8 9 10 11 12 |
# File 'lib/punk/actions/users/show.rb', line 7 def validate validates_not_null :user validates_not_empty :user return if user.blank? validates_type User, :user end |