Sha256: 2464baab5b6f0addce41b1477c01265b48ee44a6e6e78f8d0143bcb50b56ff38

Contents?: true

Size: 188 Bytes

Versions: 52

Compression:

Stored size: 188 Bytes

Contents

class UserError < RuntimeError
end

Object.send :class_eval do
  def raise_user_error msg
    raise UserError, msg
  end

  def self.raise_user_error msg
    raise UserError, msg
  end
end

Version data entries

52 entries across 52 versions & 2 rubygems

Version Path
rails-ext-0.2.12 lib/rails_ext/user_error.rb
rails-ext-0.2.11 lib/rails_ext/user_error.rb
rails-ext-0.2.10 lib/rails_ext/user_error.rb
rails-ext-0.2.9 lib/rails_ext/user_error.rb
rails-ext-0.2.8 lib/rails_ext/user_error.rb
rails-ext-0.2.7 lib/rails_ext/user_error.rb
rails-ext-0.2.6 lib/rails_ext/user_error.rb
rails-ext-0.2.5 lib/rails_ext/user_error.rb
rails-ext-0.2.4 lib/rails_ext/user_error.rb
rails-ext-0.2.3 lib/rails_ext/user_error.rb
rails-ext-0.2.1 lib/rails_ext/user_error.rb
rails-ext-0.2.0 lib/rails_ext/user_error.rb