Sha256: 38a0cb5005a796820a0d96345f9af3e30a6e906306edb57a506ddff42dabd67a

Contents?: true

Size: 210 Bytes

Versions: 38

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

38 entries across 38 versions & 2 rubygems

Version Path
krasivotokak-sugar-0.0.10 lib/sugar/actioncontroller.rb
krasivotokak-sugar-0.0.11 lib/sugar/actioncontroller.rb
krasivotokak-sugar-0.0.12 lib/sugar/actioncontroller.rb
krasivotokak-sugar-0.0.13 lib/sugar/actioncontroller.rb
krasivotokak-sugar-0.0.14 lib/sugar/actioncontroller.rb
krasivotokak-sugar-0.0.15 lib/sugar/actioncontroller.rb
krasivotokak-sugar-0.0.18 lib/sugar/actioncontroller.rb
krasivotokak-sugar-0.0.19 lib/sugar/actioncontroller.rb
krasivotokak-sugar-0.0.20 lib/sugar/actioncontroller.rb
krasivotokak-sugar-0.0.21 lib/sugar/actioncontroller.rb
krasivotokak-sugar-0.0.22 lib/sugar/actioncontroller.rb
krasivotokak-sugar-0.0.23 lib/sugar/actioncontroller.rb
krasivotokak-sugar-0.0.25 lib/sugar/actioncontroller.rb
krasivotokak-sugar-0.0.27 lib/sugar/actioncontroller.rb
krasivotokak-sugar-0.0.28 lib/sugar/actioncontroller.rb
krasivotokak-sugar-0.0.29 lib/sugar/actioncontroller.rb
krasivotokak-sugar-0.0.31 lib/sugar/actioncontroller.rb
krasivotokak-sugar-0.0.6 lib/sugar/actioncontroller.rb
krasivotokak-sugar-0.0.7 lib/sugar/actioncontroller.rb
krasivotokak-sugar-0.0.8 lib/sugar/actioncontroller.rb