Project

mamechiwa

0.0
No commit activity in last 3 years
No release in over 3 years
Seriarizer to store databae via active record. murina mono ha muri!
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

まめちわ

まめ ちわわ

使い方

class Group < ActiveRecord::Base
  mamechiwa :options, :group_type do
    mame_group "group1" do 
      mattr :group_1_attr

      define_validator do
        validates :group_1_attr, presence: true
      end
    end

    mame_group "group2" do 
      mattr :group_2_attr_1
      mattr :group_2_attr_2

      define_validator do
        validates :group_2_attr_1, presence: true
        validates :group_2_attr_2, presence: true
      end
    end

    mattr :group_1_attr
  end
end

こんな感じ。

英語がつらいよ。