Sha256: bbb3eda97203cf76a0deb6126d94bead5bf4ead23f5304d5b6acbd9ae43defe2

Contents?: true

Size: 403 Bytes

Versions: 17

Compression:

Stored size: 403 Bytes

Contents

class Admix::BoardMessagesController < Admix::InheritedController

  def approve
    resource.approved = :approved
    resource.save!
    flash[:notice] = t('boardmessages.flashes.approved')
    redirect_to collection_url
  end

  def disapprove
    resource.approved = :disapproved
    resource.save!
    flash[:notice] = t('boardmessages.flashes.disapproved')
    redirect_to collection_url
  end

end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
mix-rails-0.22.0 mix-rails-message-board/app/controllers/admix/board_messages_controller.rb
mix-rails-message-board-0.22.0 app/controllers/admix/board_messages_controller.rb
mix-rails-0.16.0 mix-rails-message-board/app/controllers/admix/board_messages_controller.rb
mix-rails-message-board-0.16.0 app/controllers/admix/board_messages_controller.rb
mix-rails-0.15.0 mix-rails-message-board/app/controllers/admix/board_messages_controller.rb
mix-rails-message-board-0.15.0 app/controllers/admix/board_messages_controller.rb
mix-rails-0.12.2 mix-rails-message-board/app/controllers/admix/board_messages_controller.rb
mix-rails-message-board-0.12.2 app/controllers/admix/board_messages_controller.rb
mix-rails-0.12.1 mix-rails-message-board/app/controllers/admix/board_messages_controller.rb
mix-rails-message-board-0.12.1 app/controllers/admix/board_messages_controller.rb
mix-rails-0.10.4 mix-rails-message-board/app/controllers/admix/board_messages_controller.rb
mix-rails-message-board-0.10.4 app/controllers/admix/board_messages_controller.rb
mix-rails-0.10.3 mix-rails-message-board/app/controllers/admix/board_messages_controller.rb
mix-rails-message-board-0.10.3 app/controllers/admix/board_messages_controller.rb
mix-rails-message-board-0.10.2 app/controllers/admix/board_messages_controller.rb
mix-rails-0.7.0 message-board/app/controllers/admix/board_messages_controller.rb
mix-rails-0.6.0 message-board/app/controllers/admix/board_messages_controller.rb