Sha256: 3e28da53d6093ce142c86db333e5ecf48d21f3767017b29807086e64fde94d9b

Contents?: true

Size: 210 Bytes

Versions: 2

Compression:

Stored size: 210 Bytes

Contents

module Sugar
  module ActionController
    def flash_message(klass, message)
      message = "#{controller_name}.messages.#{message}" if message.is_a?(Symbol)
      flash[klass] = t(message)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sugar-0.0.42 lib/sugar/action_controller.rb
sugar-0.0.41 lib/sugar/action_controller.rb