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.3.11 lib/rails_ext/basic/user_error.rb
rails-ext-0.3.10 lib/rails_ext/basic/user_error.rb
rails-ext-0.3.9 lib/rails_ext/basic/user_error.rb
rails-ext-0.3.8 lib/rails_ext/basic/user_error.rb
rails-ext-0.3.6 lib/rails_ext/basic/user_error.rb
rails-ext-0.3.5 lib/rails_ext/basic/user_error.rb
rails-ext-0.3.4 lib/rails_ext/basic/user_error.rb
rails-ext-0.3.3 lib/rails_ext/basic/user_error.rb
rails-ext-0.3.2 lib/rails_ext/basic/user_error.rb
rails-ext-0.3.1 lib/rails_ext/basic/user_error.rb
rails-ext-0.3 lib/rails_ext/basic/user_error.rb
rails-ext-0.2.21 lib/rails_ext/user_error.rb
rails-ext-0.2.20 lib/rails_ext/user_error.rb
rails-ext-0.2.19 lib/rails_ext/user_error.rb
rails-ext-0.2.18 lib/rails_ext/user_error.rb
rails-ext-0.2.17 lib/rails_ext/user_error.rb
rails-ext-0.2.16 lib/rails_ext/user_error.rb
rails-ext-0.2.15 lib/rails_ext/user_error.rb
rails-ext-0.2.14 lib/rails_ext/user_error.rb
rails-ext-0.2.13 lib/rails_ext/user_error.rb