app/models/dc_rotator.rb
######################################################################
# Additional controls if required. Will see.
######################################################################
Additional controls if required. Will see.
Additional controls if required . Will see .
def additional_controls 
  if kats.nil? or kats.size == 0
   errors.add('kats', 'At least one category should be selected!')
  end
  if text_over
    errors.add('css_over', 'helpers.help.rotator.css_over_error') if css_over.blank?
    errors.add('picture', 'helpers.help.rotator.picture_error') if picture.blank?
  end
end
def additional_controls if kats . nil? or kats . size == 0 end if text_over errors . add ( 'css_over' , 'helpers.help.rotator.css_over_error' ) if css_over . blank? errors . add ( 'picture' , 'helpers.help.rotator.picture_error' ) if picture . blank? end end
Additional controls if required.
Additional controls if required .
#  #    errors.add('kats', 'At least one category should be selected!')