Sha256: cbfee7cae1d394f681b339a894c2c09b108fb15aad58aca71f850be25c381e09
Contents?: true
Size: 1.24 KB
Versions: 135
Compression:
Stored size: 1.24 KB
Contents
module Effective class Resource include Effective::Resources::Actions include Effective::Resources::Associations include Effective::Resources::Attributes include Effective::Resources::Controller include Effective::Resources::Init include Effective::Resources::Instance include Effective::Resources::Forms include Effective::Resources::Generator include Effective::Resources::I18n include Effective::Resources::Klass include Effective::Resources::Model include Effective::Resources::Naming include Effective::Resources::Paths include Effective::Resources::Relation include Effective::Resources::Sql include Effective::Resources::Tenants # In practice, this is initialized two ways # With a klass and a namespace from effective_datatables # Or with a controller_path from crud controller # post, Post, Admin::Post, admin::Post, admin/posts, admin/post, admin/effective::post def initialize(input, namespace: nil, relation: nil, &block) _initialize_input(input, namespace: namespace, relation: relation) # This is an effective_resource do ... end block _initialize_model(&block) if block_given? self end def to_s human_name end end end
Version data entries
135 entries across 135 versions & 1 rubygems