Sha256: ca9ca6b39ac8d2057001589d4429a24970a9099afb9a414a68e120fffaf1c588

Contents?: true

Size: 547 Bytes

Versions: 19

Compression:

Stored size: 547 Bytes

Contents

require 'active_support/concern'
module KonoUtils::Concerns
  module SuccessMessage

    extend ActiveSupport::Concern

    included do
      private
      def success_create_message(model)
        t('activerecord.successful.messages.created', :model => model.mn)
      end

      def success_update_message(model)
        t('activerecord.successful.messages.updated', :model => model.mn)
      end

      def success_destroy_message(model)
        t('activerecord.successful.messages.destroyed', :model => model.mn)
      end

    end


  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
kono_utils-1.1.4 lib/kono_utils/concerns/success_message.rb
kono_utils-1.1.3 lib/kono_utils/concerns/success_message.rb
kono_utils-1.1.2 lib/kono_utils/concerns/success_message.rb
kono_utils-1.1.1 lib/kono_utils/concerns/success_message.rb
kono_utils-1.1.0 lib/kono_utils/concerns/success_message.rb
kono_utils-1.0.1 lib/kono_utils/concerns/success_message.rb
kono_utils-1.0.0 lib/kono_utils/concerns/success_message.rb
kono_utils-0.15.16 lib/kono_utils/concerns/success_message.rb
kono_utils-0.15.15 lib/kono_utils/concerns/success_message.rb
kono_utils-0.15.14 lib/kono_utils/concerns/success_message.rb
kono_utils-0.15.13 lib/kono_utils/concerns/success_message.rb
kono_utils-0.15.12 lib/kono_utils/concerns/success_message.rb
kono_utils-0.15.11 lib/kono_utils/concerns/success_message.rb
kono_utils-0.15.10 lib/kono_utils/concerns/success_message.rb
kono_utils-0.15.9 lib/kono_utils/concerns/success_message.rb
kono_utils-0.15.8 lib/kono_utils/concerns/success_message.rb
kono_utils-0.15.7 lib/kono_utils/concerns/success_message.rb
kono_utils-0.15.6 lib/kono_utils/concerns/success_message.rb
kono_utils-0.15.5 lib/kono_utils/concerns/success_message.rb