Module: Rosebud
- Defined in:
- lib/rosebud.rb,
lib/rosebud/version.rb,
lib/rosebud/validator.rb,
lib/rosebud/validations.rb,
lib/rosebud/params_scope.rb,
lib/rosebud/validations/type_validator.rb,
lib/rosebud/validations/regex_validator.rb,
lib/rosebud/validations/presence_validator.rb
Defined Under Namespace
Modules: ClassMethods, Validations Classes: ParamsScope, Validator
Constant Summary collapse
- VERSION =
'0.1.1'
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/rosebud.rb', line 18 def self.included(base) base.extend(ClassMethods) unless base.ancestors.include?(Errawr::Rails) base.send(:include, Errawr::Rails::Renderable.render_with(Errawr::Rails::Renderers::JSON)) end end |